Merge remote-tracking branch 'origin/Development' into Development

# Conflicts:
#	app/src/main/java/org/toop/app/game/ReversiGame.java
#	app/src/main/java/org/toop/app/view/views/GameView.java
This commit is contained in:
ramollia
2025-11-27 15:58:22 +01:00

View File

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