A simple command-line program that simulates rolling any number of six-sided dice and displays the results using ASCII art.
This project is written in Python and separates the main logic (code.py) from the dice art module (dice.py).
To run this program, you must have Python 3 installed on your system.
-
Download the files:
- Click the green
<> Codebutton on this page and selectDownload ZIP. - Extract the ZIP file to a folder on your computer.
- Click the green
-
Open your Terminal:
- Windows: Open Command Prompt or PowerShell.
- Mac/Linux: Open Terminal.
-
Navigate to the folder:
- Use the
cd(change directory) command to move into the folder you just unzipped. - Example:
cd C:\Users\YourName\Downloads\Python-Dice-Generator
- Use the
-
Run the program:
- Type the following command and press Enter:
python code.py
- (Note: On Mac/Linux, you may need to use
python3 code.py)
-
Follow the prompts:
- Enter the number of dice you wish to roll.
- Enter
0to exit the program.