I have made a very simple dice game,
How can i output the results of the dice using this format.
Thanks for your time.
==========
| 0 |
| |
| 0 |
==========
==========
| 0 0 |
| 0 0 |
| 0 0 |
==========
# This is a random dice game.
import random
dice1 = 0
dice2 = 0
def dice_roller():
print "Dice Roller"
print "==============="
print "1) Enter 1 to roll a six-sided dice"
sum = raw_input("> ")
if sum == '1':
dice1 = random.randrange(1, 7)
dice2 = random.randrange(1, 7)
print "The first 6-Sided Die Rolled", dice1
print "=========="
print "| |"
print "| |"
print "| |"
print "=========="
print "The second 6-Sided Die Rolled", dice2
print "=========="
print "| |"
print "| |"
print "| |"
print "=========="
input = 'C'
while 1:
if input == 'Q': break
elif input == 'C': dice_roller()
input = raw_input("press c to continue or q to quit: ").upper()