Skip to content

A simple program which simulates rolling a die/dice using the random module in Python.

Notifications You must be signed in to change notification settings

jackokeeffe/roll-dice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

roll-dice

A simple program which simulates rolling a die/dice using the random module in Python.

Rolling Dice How-To:

  1. Copy code into any IDE supporting Python.
  2. The random module should automatically be imported through the 'import random' statement.
  3. Run code, it will give you the option to roll one or two dice. This must be answered as an integer (1 to roll one dice, 2 to roll two dice).
  4. After selecting what to roll, the program will automatically roll the die/dice.
  5. After it has rolled you can than select if you would like to roll again.
  • For the question that contains (y/n), answer using y or n. y = Yes, n = No.

Contributing:

This is obviously a very simple project but if you feel like a change should be made, pull requests are welcome.

Built With:

  • Made using Python and the built-in random module.
  • Created using the PyCharm IDE by JetBrains.
  • Inspired from: https://bit.ly/311p5S1 (A upGrad Blog Article on 42 Exciting Python Project Ideas & Topics for Beginners).
  • This was created by myself, I just got the idea from the article featured above.

Author