FacundoCuba / DiceRoll

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dice Rolling Simulator

Description:

This Python script simulates rolling a six-sided die. The user can choose to roll the die or exit the simulator. The program prompts the user to input the number of dice they want to roll, then displays the outcomes.

How to Use:

Run the Script:
    Execute the script using a Python interpreter.

Dice Rolling:
    The script prompts the user to press 1 to roll the dice or 2 to exit.

Rolling Multiple Dice:
    If the user chooses to roll the dice, they are asked to input the number of dice to roll.

Display Outcomes:
    The script then displays the outcomes of rolling the specified number of dice.

Repeat or Exit:
    The user can choose to roll more dice or exit the simulator.

Important Notes:

The script uses the random.choice() function to simulate rolling a six-sided die.
It provides a simple way to experience the randomness of dice rolls.

Disclaimer:

This script is a basic dice rolling simulator for entertainment purposes. Feel free to modify and enhance it based on your preferences.

Enjoy rolling the virtual dice!

About


Languages

Language:Python 100.0%