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