mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 19:04:49 +00:00
commit
This commit is contained in:
@@ -141,6 +141,7 @@ public final class Reversi extends TurnBasedGame {
|
||||
if (moveIsLegal) {
|
||||
Move[] moves = getFlipsForPotentialMove(new Point(move.position()%8,move.position()/8), makeBoardAGrid(), move.value());
|
||||
board[move.position()] = move.value();
|
||||
IO.println(move.position() +" "+ move.value());
|
||||
for (Move m : moves) {
|
||||
board[m.position()] = m.value();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user