コード例 #1
0
from minimax_example import run_example
from saport.minimax.model import Equilibrium, Strategy

run_example("games/3_3_mixed_neg.txt", 
            [], 
            Equilibrium(-0.14, 
                Strategy([0.43, 0.21, 0.36]),
                Strategy([0.43, 0.29, 0.29])
            ))
コード例 #2
0
from minimax_example import run_example
from saport.minimax.model import Equilibrium, Strategy

eq = Equilibrium(1.0, Strategy([0, 1, 0, 0]), Strategy([0, 0, 1, 0, 0]))

run_example("tests/minimax/games/4_5_pure.txt", [eq], eq)
コード例 #3
0
from minimax_example import run_example
from saport.minimax.model import Equilibrium, Strategy

eq = Equilibrium(1.0, Strategy([0, 1, 0, 0]), Strategy([0, 0, 1, 0, 0]))

run_example("games/4_5_pure.txt", [eq], eq)
コード例 #4
0
from minimax_example import run_example
from saport.minimax.model import Equilibrium, Strategy

run_example("games/3_3_mixed_nonneg.txt", [],
            Equilibrium(2.0, Strategy([0, 0, 1]), Strategy([0.8, 0.2, 0])))