|
Game Setup
Imports:
number of players
Exports:
players’ ids
Description:
handles the initialization of the game state |
|
Player’s Turn
Imports:
player’s id
Exports:
player’s score
Description:
handles one player’s turn in Yahtzee |
|
Game Conclusion
Imports:
players scores
Exports:
none
Description:
handles the conclusion of the game including reporting the winner and
updating the high scores |
|
Roll Dice
Imports:
number of dice to be rolled
Exports:
dice values
Description:
handles a single roll of the dice graphically and numerically |
|
Process Roll
Imports:
dice values
Exports:
player’s next action
Description:
calculates the values of the roll and determines the player’s next
action |
|
Update Score
Imports:
player id, dice values
Exports:
player’s score
Description:
handles the update of the player’s overall score |