/** * Plays the given round (this is used to load/replay) * * @param board The board * @param round The round to do */ public void play(ABoard board, Round round) { switch (round.getType()) { case MOVE: board.move(num, round.getCoord()); break; case WALL: board.setWall(round.getCoord()); wallCounter--; break; case DEST: board.destroyWall(round.getCoord()); waitingTurns++; break; case NONE: if (waitingTurns > 0) waitingTurns--; break; } }