11 lines
461 B
Python
Executable File
11 lines
461 B
Python
Executable File
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 ):
|
|
return True
|
|
|
|
return False
|