Exemplo n.º 1
0
 public void undoMove() {
   if ((!PieceEffects.existsActiveTimer() && moveHistory.size() > 0)) {
     GamePlayMove gamePlayMove = moveHistory.get(moveHistory.size() - 1);
     moveHistory.remove(moveHistory.size() - 1);
     gamePlayMove.unImplement();
     reverseTurn();
   }
 }
Exemplo n.º 2
0
 public void doMove(int move) {
   if (!PieceEffects.existsActiveTimer()) {
     GamePlayMove gamePlayMove = new GamePlayMove(base, move);
     moveHistory.add(gamePlayMove);
     gamePlayMove.implement();
     reverseTurn();
   }
 }