my next assindment is creating a game of Yahtzee, i'm not sure were to start.

Create Yahtzee in C++. Before you start writing any code, create a game loop diagram on paper, and work through the game loop to make sure it works. You will be doing all of this in text, but you can use the paper score card on the left as a guide. You will need to plan how you will have the user choose which dice to reroll, and then after the maximum number of rerolls, which category to score in. There is no need to have "game one", "game two", etc.

Before you start writing any code, create a game loop diagram on paper, and work through the game loop to make sure it works.
Initillize Variable ---> Condition -----> Loop Body ----- Increment or Decrement
{If condition if false} {If condition is true}
somthing like this?
no like this

Ask how many players
Ask player names

(loop x)
Player X rolls dice
show results
Ask player X to choose how/where to count his dice roll
Record score
Reset variables
(end loop)

Report who has high score
ask if they would like to play again.
Last edited on
If you don't know what i'm talking about, read the game directions on how to play.
Oh let me make sure we are both clear.

This is what your doing first, which is what you asked.

create a game loop diagram on paper,
How's the game program going ?
Show us what you have so far...
@SamuelAdams
Johnny is just 16 years old and has not started the game yet.
The game is simply too hard for him, you play Yahtzee and you will see.
Topic archived. No new replies allowed.