iets met timing verkeerd temporary fix

This commit is contained in:
michiel
2025-10-28 14:23:53 +01:00
parent 2428048bd5
commit 3776167299
2 changed files with 2 additions and 6 deletions

View File

@@ -152,6 +152,7 @@ public final class Server {
information.players[0].name = user;
information.players[0].isHuman = false;
information.players[0].computerDifficulty = 5;
information.players[0].computerThinkTime = 1;
information.players[1].name = response.opponent();
Runnable onGameOverRunnable = isSingleGame.get()? null: this::gameOver;

View File

@@ -230,12 +230,7 @@ public final class TicTacToeGame {
} catch (InterruptedException _) {}
} else {
final Game.Move move;
if (information.players[1].name.equalsIgnoreCase("pism")) {
move = ai.findWorstMove(game,9);
}else{
move = ai.findBestMove(game, information.players[0].computerDifficulty);
}
assert move != null;
position = move.position();
}