Skip to content

Latest commit

 

History

History

Dice And Roll

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Dice Game 🎲

This is a simple and interactive dice game built with Python. Players take turns rolling a dice, with scores calculated based on their rolls. The first player to reach 100 points wins the game. The game also features special rules for rolling a 6, making it more exciting!

Features

  • User vs. Computer: Play against the computer to see who reaches 100 points first.
  • Random Dice Rolls: Dice rolls are randomly generated for both players using NumPy.
  • Dynamic Scoring: Scores update in real-time based on the rolls.
  • Special Rule: Rolling a 6 gives the player a bonus, while deducting points from the opponent.
  • Winning Condition: The game ends when either the user or the computer reaches 100 points.

Gameplay Instructions

  1. Run the game in your Python environment.
  2. Press Enter to roll the dice.
  3. Watch your roll and the computer's roll.
  4. Keep rolling to accumulate points and try to reach 100 before the computer.
  5. Type end to quit the game at any time.