From 48e3dbc911f5cdbacc429ebc545550f2b3580060 Mon Sep 17 00:00:00 2001 From: Sandor Van Wassenhove Date: Thu, 22 Oct 2015 23:21:19 -0700 Subject: [PATCH] Tweak TicTacToeGameState MCST params to reduce flakes --- .../mocabogaso/games/tictactoe/TicTacToeGameStateTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/java/com/github/sandorw/mocabogaso/games/tictactoe/TicTacToeGameStateTest.java b/src/test/java/com/github/sandorw/mocabogaso/games/tictactoe/TicTacToeGameStateTest.java index 0d6762e..c085ee7 100644 --- a/src/test/java/com/github/sandorw/mocabogaso/games/tictactoe/TicTacToeGameStateTest.java +++ b/src/test/java/com/github/sandorw/mocabogaso/games/tictactoe/TicTacToeGameStateTest.java @@ -36,9 +36,11 @@ public void playFullGameTest() { MonteCarloSearchService aiService = new MonteCarloSearchService<>(nodeResultsService, policy, gameState); aiService.setNodeExpandThreshold(1); + aiService.setExplorationConstant(5.0f); Player XPlayer = new AIPlayer<>(aiService, 100); aiService = new MonteCarloSearchService<>(nodeResultsService, policy, gameState); aiService.setNodeExpandThreshold(1); + aiService.setExplorationConstant(5.0f); Player OPlayer = new AIPlayer<>(aiService, 100); game.addPlayer("X", XPlayer); game.addPlayer("O", OPlayer);