Skip to content

SHAYAN-ABRAR/Dice-Roller-Program-Using-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Dice Rolling Simulator - Python

Description

This Python program simulates rolling multiple dice. The user specifies the number of dice to roll, and the program randomly generates and displays the result for each die using ASCII art. The program also calculates and displays the total sum of all dice rolled.

Features

  • Custom Number of Dice: Prompts the user to enter the number of dice they want to roll.
  • Random Roll Generation: Each die rolls a random value between 1 and 6.
  • ASCII Art Display: Displays each die's result using ASCII art for a visual effect.
  • Total Calculation: Displays the sum of all dice values rolled.

How to Use

  1. Clone or download this repository to your local machine.
  2. Run the program in a Python environment.
  3. Follow the prompt:
    • Enter the number of dice you want to roll.
    • The program will roll each die, display its value as ASCII art, and then calculate and show the total sum.

Example Usage

How many dice?: 3
┌─────────┐┌─────────┐┌─────────┐
│  ●   ●  ││  ●   ●  ││  ●   ●  │
│  ●   ●  ││    ●    ││    ●    │
│  ●   ●  ││  ●   ●  ││  ●   ●  │
└─────────┘└─────────┘└─────────┘
Total: 14

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages