Skip to content

Ravish108Coder/dice-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dice Game Program

This dice game program allows users to play a simple game of rolling two dice and trying to guess the sum of the dice rolls.

Features

Random dice rolls for each turn User input for guessing the sum of the dice rolls Win/loss conditions and score tracking Option to play again after a game ends

Installation

To install the program, follow these steps:

Usage

To play the dice game, follow these steps:

  • Enter your guess for the sum of the two dice rolls in the input field.
  • Click the "Roll Dice" button to initiate the dice rolls.
  • The program will reveal the dice rolls and determine whether you guessed correctly.
  • If you guessed correctly, you will earn points based on the sum of the dice rolls.
  • The game will continue until you reach a certain point threshold or until you lose by guessing incorrectly too many times.
  • Click the "Play Again" button to start a new game.

Credits

This program was created by Ravish Kumar. If you have any questions or feedback, please contact us at https://github.com/Ravish108Coder .