Removed System-Outs to clean up console

This commit is contained in:
2025-12-05 14:18:47 +01:00
parent 237f708a54
commit 449387c8ed
4 changed files with 3 additions and 9 deletions

View File

@@ -61,7 +61,6 @@ public class MiniMaxAI<T extends TurnBasedGame<T>> extends AbstractAI<T> {
}
long chosenMove = bestMoves.get(random.nextInt(bestMoves.size()));
System.out.println("[DEBUG] Selected move: " + Long.toBinaryString(chosenMove) + " | score: " + bestScore);
return chosenMove;
}

View File

@@ -19,11 +19,8 @@ public class RandomAI<T extends TurnBasedGame<T>> extends AbstractAI<T> {
@Override
public long getMove(T game) {
System.out.println("Getting move?");
long legalMoves = game.getLegalMoves();
int move = new Random().nextInt(Long.bitCount(legalMoves));
System.out.println("Legal moves: " + Long.toBinaryString(legalMoves));
System.out.println("Playing: " + Long.toBinaryString(nthBitIndex(legalMoves, move)));
return nthBitIndex(legalMoves, move);
}