mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 10:54:51 +00:00
Reversi: made method private
This commit is contained in:
@@ -206,7 +206,7 @@ public final class Reversi extends TurnBasedGame {
|
||||
}
|
||||
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 centerY = center.position()/this.getRowSize();
|
||||
Arrays.sort(moves, (a, b) -> {
|
||||
|
||||
Reference in New Issue
Block a user