Reversi: made method private

This commit is contained in:
2025-10-29 19:51:09 +01:00
parent ea30e20585
commit be31de4660

View File

@@ -206,7 +206,7 @@ public final class Reversi extends TurnBasedGame {
} }
return new Score(player1Score, player2Score); return new Score(player1Score, player2Score);
} }
public Move[] sortMovesFromCenter(Move[] moves, Move center) { private Move[] sortMovesFromCenter(Move[] moves, Move center) {
int centerX = center.position()%this.getColumnSize(); int centerX = center.position()%this.getColumnSize();
int centerY = center.position()/this.getRowSize(); int centerY = center.position()/this.getRowSize();
Arrays.sort(moves, (a, b) -> { Arrays.sort(moves, (a, b) -> {