Homework 3, A Game.
Short Description:
Implement the game Chicago
Goals
When you finish this homework, you should have:- Written a moderate length program involving loops and selection.
Formal Description
Implement ChicagoChicago
Chicago, also commonly known as Rotation, is a fast-paced dice game that can easily be enjoyed in both small and large groups.What You'll Need:
- 2+ Players
- Two Dice
- Scoresheet (Optional)
How to Play
The goal of Chicago is to roll every possible number combination that can be made with two dice. There are 11 possible combinations, and you'll have 11 chances to roll. Each round has a target combination, which starts at 2 and goes up to 12 in the same sequence. For example, if you are in Round 8, the target score is 9. If a player rolls any combination that adds up to 9, they will score that number. If they do not, they'll earn zero points for that round.The game starts when the starting player rolls both dice. Remember, the target score for the first round is 2. If the player rolls two 1's, they'll score the two points. If not, no points will be awarded and the play moves on to the next player.
After 11 rounds, add up the total score of each player. The player with the highest cumulative score wins!
- The results of each player at each turn.
- The final scores and indicate who won.
- Example Output:
Enter the number of players (1-5) => 2 Enter the number of sides (1-100) => 3 Enter the number of sides (1-100) => 3 2 players are using a d3 and a d3. Targets are from 2 to 6. Round 1, aiming for a target of 2 Player 1 rolls a 2 and a 3 for a score of 5, NO Score! Player 2 rolls a 3 and a 1 for a score of 4, NO Score! Round 2, aiming for a target of 3 Player 1 rolls a 1 and a 1 for a score of 2, NO Score! Player 2 rolls a 1 and a 3 for a score of 4, NO Score! Round 3, aiming for a target of 4 Player 1 rolls a 1 and a 2 for a score of 3, NO Score! Player 2 rolls a 2 and a 3 for a score of 5, NO Score! Round 4, aiming for a target of 5 Player 1 rolls a 1 and a 2 for a score of 3, NO Score! Player 2 rolls a 3 and a 3 for a score of 6, NO Score! Round 5, aiming for a target of 6 Player 1 rolls a 3 and a 3 for a score of 6, Score! Player 2 rolls a 2 and a 3 for a score of 5, NO Score! Player 1 scores 6, winner! Player 2 scores 0 - You do not need to copy the output format exactly but
- It should contain all information contained in the example.
- It should be at least as readable as the example.
- All numbers should line up in the output, I used a width for most numeric output where dice were involved.
Notes
If you work collaboratively, including with an AI, please note this. If you have the AI generate this program, please let me know that as well.Please document your code.
I would not expect you to use functions as we do not yet know how to implement functions.