From 6fb248bec45ec4aa5a4f8775b946127389e89cba Mon Sep 17 00:00:00 2001 From: Ticho Hidding Date: Mon, 27 Oct 2025 17:21:50 +0100 Subject: [PATCH] spam minder v2 --- app/src/main/java/org/toop/app/game/TicTacToeGame.java | 2 -- .../main/java/org/toop/app/view/views/SendChallengeView.java | 1 - game/src/main/java/org/toop/game/reversi/Reversi.java | 3 --- 3 files changed, 6 deletions(-) diff --git a/app/src/main/java/org/toop/app/game/TicTacToeGame.java b/app/src/main/java/org/toop/app/game/TicTacToeGame.java index 7e5db6b..de91574 100644 --- a/app/src/main/java/org/toop/app/game/TicTacToeGame.java +++ b/app/src/main/java/org/toop/app/game/TicTacToeGame.java @@ -224,9 +224,7 @@ public final class TicTacToeGame { } catch (InterruptedException _) {} } else { final Game.Move move; - IO.println(information.players[0].name + " " + information.players[1].name); if (information.players[1].name.equalsIgnoreCase("pism")) { - IO.println("got worst move"); move = ai.findWorstMove(game,9); }else{ move = ai.findBestMove(game, information.players[0].computerDifficulty); diff --git a/app/src/main/java/org/toop/app/view/views/SendChallengeView.java b/app/src/main/java/org/toop/app/view/views/SendChallengeView.java index 7f2b8d6..e7635f7 100644 --- a/app/src/main/java/org/toop/app/view/views/SendChallengeView.java +++ b/app/src/main/java/org/toop/app/view/views/SendChallengeView.java @@ -56,7 +56,6 @@ public final class SendChallengeView extends View { final Button cancelButton = button(); cancelButton.setText(AppContext.getString("cancel")); cancelButton.setOnAction(_ -> { - IO.println("tried to click cancel"); ViewStack.pop(); }); final List nodes = new ArrayList<>(); diff --git a/game/src/main/java/org/toop/game/reversi/Reversi.java b/game/src/main/java/org/toop/game/reversi/Reversi.java index ea16075..e86de86 100644 --- a/game/src/main/java/org/toop/game/reversi/Reversi.java +++ b/game/src/main/java/org/toop/game/reversi/Reversi.java @@ -142,7 +142,6 @@ public final class Reversi extends TurnBasedGame { Move[] moves = sortMovesFromCenter(getFlipsForPotentialMove(new Point(move.position()%columnSize,move.position()/rowSize), makeBoardAGrid(), move.value()),move); mostRecentlyFlippedPieces = moves; board[move.position()] = move.value(); - IO.println(move.position() +" "+ move.value()); for (Move m : moves) { board[m.position()] = m.value(); } @@ -207,7 +206,6 @@ public final class Reversi extends TurnBasedGame { public Move[] sortMovesFromCenter(Move[] moves, Move center) { int centerX = center.position()%columnSize; int centerY = center.position()/rowSize; - IO.println("pre "+Arrays.toString(moves)); Arrays.sort(moves, (a, b) -> { int dxA = a.position()%columnSize - centerX; int dyA = a.position()/rowSize - centerY; @@ -219,7 +217,6 @@ public final class Reversi extends TurnBasedGame { return Integer.compare(distA, distB); }); - IO.println("post "+Arrays.toString(moves)); return moves; } public Move[] getMostRecentlyFlippedPieces() {