mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 10:54:51 +00:00
Removed souts for debugging
This commit is contained in:
@@ -40,7 +40,6 @@ public class GenericGameController<T extends TurnBasedGame<T>> implements GameCo
|
||||
private final ThreadBehaviour gameThreadBehaviour;
|
||||
|
||||
// TODO: Change gameType to automatically happen with either dependency injection or something else.
|
||||
// TODO: Make visualisation of moves a behaviour.
|
||||
public GenericGameController(GameCanvas<T> canvas, T game, ThreadBehaviour gameThreadBehaviour, String gameType) {
|
||||
logger.info("Creating: " + this.getClass());
|
||||
|
||||
|
||||
@@ -57,7 +57,6 @@ public class LocalMultiplayerView extends ViewWidget {
|
||||
|
||||
switch (information.type) {
|
||||
case TICTACTOE:
|
||||
System.out.println("TicTacToe");
|
||||
if (information.players[0].isHuman) {
|
||||
players[0] = new LocalPlayer<>(information.players[0].name);
|
||||
} else {
|
||||
@@ -68,7 +67,6 @@ public class LocalMultiplayerView extends ViewWidget {
|
||||
} else {
|
||||
players[1] = new ArtificialPlayer<>(new TicTacToeAIR(), information.players[1].name);
|
||||
}
|
||||
System.out.println(Arrays.toString(players));
|
||||
if (AppSettings.getSettings().getTutorialFlag() && AppSettings.getSettings().getFirstTTT()) {
|
||||
new ShowEnableTutorialWidget(
|
||||
() -> new TicTacToeTutorialWidget(() -> {
|
||||
|
||||
@@ -34,7 +34,6 @@ public abstract class BitboardGame<T extends BitboardGame<T>> implements TurnBas
|
||||
j++;
|
||||
}
|
||||
}
|
||||
System.out.println(Arrays.toString(output));
|
||||
return output;
|
||||
}
|
||||
|
||||
@@ -91,7 +90,6 @@ public abstract class BitboardGame<T extends BitboardGame<T>> implements TurnBas
|
||||
public Player<T> getPlayer(int index) {return players[index];}
|
||||
|
||||
public int getCurrentPlayerIndex() {
|
||||
System.out.println(currentTurn % playerBitboard.length);
|
||||
return currentTurn % playerBitboard.length;
|
||||
}
|
||||
|
||||
@@ -104,7 +102,6 @@ public abstract class BitboardGame<T extends BitboardGame<T>> implements TurnBas
|
||||
}
|
||||
|
||||
public void nextTurn() {
|
||||
System.out.println("Incrementing turn");
|
||||
currentTurn++;
|
||||
}
|
||||
}
|
||||
@@ -77,8 +77,6 @@ public class BitboardReversi extends BitboardGame<BitboardReversi> {
|
||||
|
||||
@Override
|
||||
public int[] getLegalMoves(){
|
||||
System.out.println(Arrays.toString(translateLegalMoves(getLegalMoves2())));
|
||||
System.out.println(Long.toBinaryString(getLegalMoves2()));
|
||||
return translateLegalMoves(getLegalMoves2());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user