hts.StevenWood.com

Yahtzee

Home ] Up ] [ Yahtzee ] Rubric ][ Last Page ]

Partial Structure Chart for the Game of Yahtzee

 

The Game of Yahtzee

 

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

... ... ...
...

Is Yahtzee

Imports: dice values

Exports: Boolean value is Yahtzee

Description: determines if the dice are five of a kind

 

 

 

Source: Roy Paterno. Association of Computer Science Educators. Grade 11 Resources - Draft Version. http://www.acse.net/Grade11/ICS3U.doc. August 10, 2001. Adapted.

Home ] Up ] [ Yahtzee ] Rubric ][Last Page]
All material on this site is copyright © 1997- by Steven Wood or as credited. All right reserved. Use of this site indicates you agreement with the  terms of use.
Send comments or questions to about this page.
Every attempt has been made to credit work under copyright. If there are any claims that copyright has been missed please contact the .
+SDG+