Git Card Game: Playing a ‘git reset’ card (u.git-card-game-05)¶
Version: V1.1, 12.08.2022, Improve format
Author: Ilijaz Mehmedovic, Leon Hofmeister
Description¶
The player plays a git reset card.
Precondition¶
It’s the player’s turn.
The player has a git reset card in his stack.
Postcondition¶
Typical procedure¶
The player selects the
git resetcardThe staged file with the name on the card gets unstaged
The player’s score increases by 4
The
git resetcard gets added to the middle stackThe
git resetcard gets removed from the player’s stack and the game continues
Alternative procedures¶
2.1. The file with the file name on the card is not staged
2.2. The player’s turn ends
5.1. The player has no cards left on his stack
5.2. The player’s turn ends
Criticality¶
High