Exemple #1
0
 def test_minimax_on_othello_3_7_optimum(self):
     board = Board()
     players = [Player('black'), Player('white')]
     game = Game(board, players, visualise=True)
     game.board[3, 5] = int(players[0])
     game.board[3, 6] = int(players[0])
     game.swap_players()
     ai = MiniMaxAI(color='white', depth=0)
     self.assertEqual(ai.search(game), (3, 7))