Adjust print statements

This commit is contained in:
Felix Koppe
2024-12-08 14:25:38 +01:00
parent f9f381ac2d
commit f5b0481d3c
4 changed files with 3 additions and 4 deletions

View File

@@ -160,7 +160,6 @@ public boolean equals(Object obj) {
if (obj instanceof Piece) { if (obj instanceof Piece) {
Piece piece = (Piece) obj; Piece piece = (Piece) obj;
System.out.println("own UUID: " + this.uuid + ". Other UUID: " + piece.uuid);
return uuid.toString().equals(piece.uuid.toString()); return uuid.toString().equals(piece.uuid.toString());
} }

View File

@@ -93,7 +93,7 @@ private boolean canHomeMove(Piece piece, int moveIndex){
protected int calculateTargetIndex(Piece piece){ protected int calculateTargetIndex(Piece piece){
int steps = logic.getGame().getDiceModifier() * logic.getGame().getDiceEyes(); int steps = logic.getGame().getDiceModifier() * logic.getGame().getDiceEyes();
LOGGER.log(System.Logger.Level.INFO, "Calculating target index for piece: " + piece.getUuid() + " with steps: " + steps + "start index: " + logic.getGame().getBoard().getInfieldIndexOfPiece(piece));
return (logic.getGame().getBoard().getInfieldIndexOfPiece(piece) + steps) % logic.getGame().getBoard().getInfield().length; return (logic.getGame().getBoard().getInfieldIndexOfPiece(piece) + steps) % logic.getGame().getBoard().getInfield().length;
} }
} }