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