0% found this document useful (0 votes)
9 views2 pages

Dice Game

The document describes creating a dice rolling game using object-oriented programming. The game will simulate rolling dice and tracking scores for multiple players. It outlines features like players having a name, score, and password, dice having a number of sides and selected value, and the game allowing adding and removing players and simulating rounds of play.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views2 pages

Dice Game

The document describes creating a dice rolling game using object-oriented programming. The game will simulate rolling dice and tracking scores for multiple players. It outlines features like players having a name, score, and password, dice having a number of sides and selected value, and the game allowing adding and removing players and simulating rounds of play.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Assignment Title: Dice Rolling Game

Description of the work

You have been tasked with creating a dice rolling game using object-oriented
programming principles. The game should simulate rolling dice and keep track of the
scores of multiple players. Each player will take turns rolling the dice and
accumulating points based on the outcome of the roll.

Features and Entities:

1. A Player will have a name, score and a password as attributes. The program needs
to access the attributes whenever required.

2. The Dice will have a number of sides, the current value selected and contain the
following:

• The number of sides of the dice needs to be specified when a new dice is created.
• The program needs to read the selected value of the dice when it is rolled
• When the dice is rolled the selected value should be between 1 and the number of
sides of the dice

3. The Game Should include the following

• The Game can have any number of players joined with the game. The program should
be able to use methods to add new players, user login before they roll the dice for
each and every dice and signout from the game when needed. It needs to display the
scores of each player.

• The program should be able to simulate rounds of the game where each player
joined with the game takes turns rolling the dice and updating scores accordingly.
You need to design a scoring schema for the game and a set of rules to be used in
the game.

• The game needs to use a Dice, so it can be used in the game by each player to
roll it and update their score. You can use your own ideas to provide bonus scores
or punishments according to the value selected after each roll

• You are required to use at least one instance of a non-human player and simulate
all the activities performed by human players like participating in rounds and
rolling the dice etc.

4. Use appropriate error handling techniques to handle invalid inputs or


exceptional scenarios.

5. Create an interactive menu-based program that allows the user to:

• Add players to the game.


• Start a round of the game.
• Display the scores of all players.
• Quit the program.

6. Ensure that the program provides a user-friendly experience with clear


instructions and Informative output.

Deliverables:

1. Implement the classes according to the given requirements.


2. Develop an interactive menu-based program that utilizes the implemented classes.

3. Write a brief documentation explaining the design and implementation of your


solution.

4. Demonstrate the functionality of your program through sample gameplay scenarios.

Note: You can extend the assignment by adding more features to the game, such as
customizing the number of dice, setting a winning condition etc.

You might also like