Homework 3, A Game.

Short Description:

Implement the game Chicago

Goals

When you finish this homework, you should have:

Formal Description

Implement Chicago

Chicago

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:

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 game above assumes that you are playing with six sided dice. Your program should allow play with any type of die between a two sided die (coin) and a 100 sided die.
  • You should ask the user for the number of players before the game begins, This should be between 2 and 5 inclusive. Your program should not accept an invalid number of players.
  • Your should ask the player for the number of sides for each of the two die, this should be between 2 and 100 inclusive. Your program should not accept an invalid number of sides.
  • Your input should contain the following:

    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.

    Required Files

    A tar file containing all files required to build this project.

    Submission

    Submit the assignment to the D2L folder xxx by the due date.