From a75a10439223dc945d7ef522f5868b2b2100d612 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konrad=20Pierzy=C5=84ski?= Date: Tue, 12 Nov 2019 19:09:01 +0000 Subject: [PATCH] Cleaned file. --- zdominowana.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/zdominowana.py b/zdominowana.py index bc313e9..90f923c 100755 --- a/zdominowana.py +++ b/zdominowana.py @@ -1,18 +1,10 @@ -#!VENV/bin/python3 - -from teg import dominuje, wyplata -#from scipy.optimize import linprog - def zdominowana(player, strategy, payment_matrix_one, payment_matrix_two): for i in range(0,len(payment_matrix_one if player == 1 else payment_matrix_two[0])): strategy_check = [0 for p in strategy] strategy_check[i] = 1 if( strategy == strategy_check ): continue - if( dominuje(player, strategy_check, strategy, payment_matrix_one, payment_matrix_two ) == True ): + if( teg.dominuje(player, strategy_check, strategy, payment_matrix_one, payment_matrix_two ) == True ): return True return False - -x = zdominowana(2,[1, 0,0],[[0,0,0],[0,0,0]],[[0,1,2],[0,1,2]]) -print(x)