fixed turn skip bug

fixed end score bug
now only shows legal and highlight moves when human
This commit is contained in:
Ticho Hidding
2025-11-27 15:41:09 +01:00
parent 710438ec1b
commit 81f4d307a2
2 changed files with 37 additions and 21 deletions

View File

@@ -8,6 +8,7 @@ public final class ReversiAI extends AI<Reversi> {
public Move findBestMove(Reversi game, int depth) {
Move[] moves = game.getLegalMoves();
int inty = (int)(Math.random() * moves.length-.5f);
if (moves.length == 0) return null;
return moves[inty];
}
}