C++ Yahtzee program help!

Hello there everyone! I Have been interested in C++ for awhile and figured I'd look online for some easy tutorials. I Came across this online assignment to run a Yahtzee program that MUST output exactly as follows



john%>yahtzee

Turn #1
Your first roll is: 1 1 5 4 1. (Type 'y' to re-roll or 'n' to stay)
n n y y n

Your second roll is: 1 1 3 2 1. (Type 'y' to re-roll or 'n' to stay)
n n y y n

Your third roll is: 1 1 1 2 1

Under what category would you like to record your score:
1 - Ones, 2 - Twos, 3 - Threes,
4 - Fours, 5 - Fives, 6 - Sixes,
7 - Three of a Kind, 8 - Four of a Kind, 9 - Full House,
10 - Small Straight, 11 - Large Straight, 12 - Yahtzee,
13 - Chance, 14 - Scratch

Choice (1-14): 1

1 - Ones 4 2 - Twos 0 3 - Threes 0
4 - Fours 0 5 - Fives 0 6 - Sixes 0

7 - Three of Kind 0 8 - Four of Kind 0 9 - Full House 0
10 - Sm. Straight 0 11 - Lg. Straight 0 12 - Yahtzee 0
13 - Chance 0


Now I am VERY new to C++ and I'm not even sure how to get started on this. If someone would be so kind as to maybe write out the correct program needed? I have searched around for it, but none i find seem to work. I understand it is time consuming, but perhaps I will buy you a digital pizza in return.
I should add, I learn best when I see the correct way of doing something, and then study it to learn how to do it.

Also it is supposed to tally up the score at the end of last turn, there should be 13 turns.

Thanks for any help you can give!
Last edited on
If it's something that u'r interested in then u should be doing it urself...read some more tutorials or perhaps figure out tic-tac-toe ~
Topic archived. No new replies allowed.