Skip to content

naraomur/Console_Dice_Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Console_Dice_Game

Recommend to open this project in Eclipse IDE.

Project gradually build level by level adding up new functionality

1. Level 1

  • a game that simulates a player rolling dice. There are 2 dice in the game and on each of they can drop from 1 to 6 points. The user guesses a number from 2 to 12, then rolls cubes. After the roll, shows the dice drawn with symbols and the number of points rolled. The user wins if the result is a score greater than zero. At the end displays the formula for calculating points, the final number of points minus double errors in guessing and makes a verdict - the user won or lost.
  • image
  • image

2. Level 2

  • Includes the second player into the game - the computer. The user throws first. Then a computer. Then comes scoring and the winner is announced with an indication of the difference in points. The one who has more points wins, even if he has a negative result. A tie is also possible if the points of players are equal.
  • image
  • image

3. Level 3

  • Program holds not one round, but three is held. Thus, user and computer must roll the dice alternately three times each. At the end of each round, data on the difference in the score of the players is displayed. After the last round, a table with the results of the entire game comes out.
  • image
  • image

4. Level 4

  • At this level after three rounds the user is asked if he wants to play again:
  • image
  • In case the user agrees, the game starts again. In case of failure, the program ends its work.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages