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