BugFix
This commit is contained in:
parent
a75a104392
commit
45ca46de6f
@ -1,10 +1,11 @@
|
||||
from teg import dominuje
|
||||
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( teg.dominuje(player, strategy_check, strategy, payment_matrix_one, payment_matrix_two ) == True ):
|
||||
if( dominuje(player, strategy_check, strategy, payment_matrix_one, payment_matrix_two ) == True ):
|
||||
return True
|
||||
|
||||
return False
|
||||
|
Loading…
Reference in New Issue
Block a user