예제 #1
0
# Depth 3
player1 = MinimaxAI(heuristics.std_get_material, 3)
player2 = MinimaxAI(heuristics.std_get_material, 3)

game = ChessGame(player1, player2)
print(game)
game.make_move()

# Board 3: #

# Depth 0
player1 = MinimaxAI(heuristics.std_get_material, 0)
player2 = MinimaxAI(heuristics.std_get_material, 3)

game = ChessGame(player1, player2)
game.board = chess.Board("r2q3k/pn2bprp/4pNp1/2p1PbQ1/3p1P2/5NR1/PPP3PP/2B2RK1 w - - 0 1")
print(game)
game.make_move()

# Depth 1
player1 = MinimaxAI(heuristics.std_get_material, 1)
player2 = MinimaxAI(heuristics.std_get_material, 3)

game = ChessGame(player1, player2)
game.board = chess.Board("r2q3k/pn2bprp/4pNp1/2p1PbQ1/3p1P2/5NR1/PPP3PP/2B2RK1 w - - 0 1")
print(game)
game.make_move()

# Depth 2
player1 = MinimaxAI(heuristics.std_get_material, 2)
player2 = MinimaxAI(heuristics.std_get_material, 3)