Git Card Game: Playing a ‘git commit’ card (u.git-card-game-07)

Version: V1.1, 12.08.2022, Improve format
Author: Ilijaz Mehmedovic, Leon Hofmeister

Description

The player plays a git commit card.

Precondition

It’s the player’s turn. The player has a git commit card in his stack.

Postcondition

Typical procedure

  1. The player selects the git commit card

  2. All staged files are getting committed

  3. The player’s score increases by the amount of untracked files

  4. The git commit card gets added to the middle stack

  5. The git commit card gets removed from the player’s stack and the game continues

Alternative procedures

2.1. There are no untracked files
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

Linkages