Skip to content

Commit

Permalink
Merge pull request #31 from gammyp/master
Browse files Browse the repository at this point in the history
Simple dice toss with python.
  • Loading branch information
DipanshKhandelwal authored Oct 1, 2018
2 parents 94a5851 + 8803766 commit f31a194
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions PythonDiceToss/dicetoss.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
from random import randint
randomedvalue = randint(1,6)
print("----------")
if(randomedvalue == 1):
print("| |")
print("| * |")
print("| |")
elif(randomedvalue == 2):
print("| |")
print("| * * |")
print("| |")
elif(randomedvalue == 3):
print("| * |")
print("| * |")
print("| * |")
elif(randomedvalue == 4):
print("| * * |")
print("| |")
print("| * * |")
elif(randomedvalue == 5):
print("| * * |")
print("| * * |")
print("| * |")
elif(randomedvalue == 6):
print("| * * |")
print("| * * |")
print("| * * |")
else:
print("| |")
print("| |")
print("| |")
print("----------")

0 comments on commit f31a194

Please sign in to comment.