Skip to content

orsenthil/dice

Repository files navigation

Play the Dice Game

How many dice do you want to roll? [1-6] 4

~~~~~~~~~~~~~~~~~~~ RESULTS ~~~~~~~~~~~~~~~~~~~
┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐
│  ●   ●  │ │  ●   ●  │ │         │ │  ●   ●  │
│         │ │  ●   ●  │ │    ●    │ │    ●    │
│  ●   ●  │ │  ●   ●  │ │         │ │  ●   ●  │
└─────────┘ └─────────┘ └─────────┘ └─────────┘



$ python main.py 
How many dice do you want to roll? [1-6] 3

~~~~~~~~~~~~~ RESULTS ~~~~~~~~~~~~~
┌─────────┐ ┌─────────┐ ┌─────────┐
│  ●      │ │  ●   ●  │ │  ●   ●  │
│         │ │         │ │         │
│      ●  │ │  ●   ●  │ │  ●   ●  │
└─────────┘ └─────────┘ └─────────┘

$ python main.py 
How many dice do you want to roll? [1-6] 1

~ RESULTS ~
┌─────────┐
│  ●   ●  │
│         │
│  ●   ●  │
└─────────┘

$ python main.py 
How many dice do you want to roll? [1-6] 5

~~~~~~~~~~~~~~~~~~~~~~~~~ RESULTS ~~~~~~~~~~~~~~~~~~~~~~~~~
┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐
│  ●   ●  │ │  ●      │ │         │ │  ●   ●  │ │  ●   ●  │
│    ●    │ │         │ │    ●    │ │    ●    │ │    ●    │
│  ●   ●  │ │      ●  │ │         │ │  ●   ●  │ │  ●   ●  │
└─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘

Credits

This project was created by following the tutorial on Real Python.

About

roll dice

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages