Skip to content

Mr-Olivier/DICE_GAME_PROJECT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dice Game

Overview

This is a fun and simple dice game where players compete to achieve the highest score over six rounds. Players can roll the dice up to three times per round and choose from various scoring options based on the outcome of the rolls.

Rules

  1. There are a total of six rounds.
  2. You can roll the dice up to three times per round.
  3. To start the game, roll the dice.
  4. After rolling, you can choose to keep a selected score or roll the dice again.
  5. If you choose a selected score, you will move to the next round.
  6. If you decline to choose a selected score, you can roll the dice again up to two more times.

Scoring

  • Three of a kind: Sum of all five dice.
  • Four of a kind: Sum of all five dice.
  • Full house: Three of a kind and a pair - 25 points.
  • Small straight: Four of the dice have consecutive values - 30 points.
  • Large straight: All five dice have consecutive values - 40 points.

How to Play

  1. Start the Game: Roll the dice by clicking the "Roll Dice" button.
  2. First Roll: After the first roll, you can choose a score or roll the dice again.
  3. Second Roll: If you roll the dice again, you can keep any dice you want to hold and re-roll the others.
  4. Third Roll: You can roll the dice one final time and then choose a score.
  5. Score Selection: Select one of the available scores based on the outcome of your dice rolls. This will end the current round and move to the next round.
  6. Repeat: Repeat the process for all six rounds.
  7. Final Score: After six rounds, the game will display your total score.

Points System

  • Three of a kind: Sum of all five dice.
  • Four of a kind: Sum of all five dice.
  • Full house: Three of a kind and a pair - 25 points.
  • Small straight: Four of the dice have consecutive values - 30 points.
  • Large straight: All five dice have consecutive values - 40 points.

Example

  1. Round 1:

    • First Roll: [1, 2, 3, 4, 5]
    • Second Roll: [1, 2, 3, 4, 6] (rolled again)
    • Third Roll: [1, 2, 3, 4, 6] (chose to keep Small Straight: 30 points)
  2. Round 2:

    • First Roll: [2, 2, 3, 3, 3]
    • Selected Full House: 25 points

... and so on for six rounds.

Contributing

If you would like to contribute to this project, please open an issue or submit a pull request.

Contact

If you have any questions or feedback, feel free to reach out to the project maintainer.

Enjoy the game!

About

Dice game project

Resources

Stars

Watchers

Forks