Python_Mini_Projects/Dice_Rolling_Simulator at main · soorjya/Python_Mini_Projects · GitHub
Skip to content

Latest commit

 

History

History

Dice_Rolling_Simulator

Folders and files

README.md

Dice Rolling Simulator

Welcome to the Rolling Dice Simulator repository! This project is a simple dice rolling simulator implemented in Python. It allows you to simulate rolling one or multiple dice and displays the corresponding results.

Features

  • Simulate rolling one or multiple dice.
  • Choose the number of sides on each dice (default is 6-sided dice).
  • Get random results for each dice roll.
  • Display the outcome of each roll in a user-friendly format.

Example

Here's an example output of running the program:

Welcome to the Rolling Dice Simulator!

Roll the dice? (Yes/No) : yes

Rolling the dice...
Dice 1: 4
             _________
            |  O   O  |
            |    4    |
            |  O   O  |
            |_________|
            
Dice 2: 2
             _________
            | O       |
            |    2    |
            |      O  |
            |_________|

Total: 6

Usage

  • Open the terminal or command prompt and navigate to the project directory.
  • Run the dice_simulator.py file using the following command:
    python dice_simulator.py 
    
  • Follow the on-screen instructions to choose the number of dice to roll and simulate the rolling process.
  • The program will display the outcome of each dice roll.

Contributing

Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request.