Adjust print statements
This commit is contained in:
@@ -160,7 +160,6 @@ public boolean equals(Object obj) {
|
||||
if (obj instanceof Piece) {
|
||||
Piece piece = (Piece) obj;
|
||||
|
||||
System.out.println("own UUID: " + this.uuid + ". Other UUID: " + piece.uuid);
|
||||
return uuid.toString().equals(piece.uuid.toString());
|
||||
}
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ private boolean canHomeMove(Piece piece, int moveIndex){
|
||||
|
||||
protected int calculateTargetIndex(Piece piece){
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user