The arrangement of the pieces reverts to the previous configuration relative to the current one. The player can choose to undo a move using a dedicated button.Īt least one move must have been made before invoking the functionality. If the player has not made a move yet, the reset does nothing. Pieces must be arranged in the initial configuration related to the game they were playing. The player can reset the game using a dedicated button.Īt any time, the player can choose to reset the game by pressing the "reset" button. Whenever the player takes an action, the counter is updated and displayed to the player. The player must be able to view the number of moves made so far.Ī counter must be present in the graphical interface displaying the number of moves made up to that point. Increase the move counter, save the game. The selected piece is moved one position in the direction chosen by the player. There must be an allowed position, i.e., an empty space. The player can move a piece one position per turn to an empty space that can accommodate it. Use Case Name Move Pieces to Allowed Positions The choice of the initial configuration can always be made, but the ongoing game will be deleted. The game can start or continue with the current configuration. The program sets up the initial arrangement of pieces based on the configuration chosen by the player. The player can select one of four initial configurations to start playing. Nome dello Use Case Choose Initial Configuration The last configuration stored in the history is displayed to the player. The player must be able to view the current configuration on the screen.
0 Comments
Leave a Reply. |