mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 19:04:49 +00:00
Removed System-Outs to clean up console
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user