Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- players = {}
- def inputplayers():
- playername = None
- while playername != '':
- playername = str(input('Player Name? : '))
- if playername != '':
- players[playername] = 500
- def potcheck():
- global pots
- for player in players:
- print('Current Pot for', player, ':', players[player])
- pots = sum(players.values())
- def roll():
- global dice1, dice2
- dice1 = random.randint(1, 6)
- dice2 = random.randint(1, 6)
- print(dice1, dice2)
- #def openingroll():
- def game():
- print ('Welcome to Craps!\nPress enter when done!')
- state = 'off'
- inputplayers()
- potcheck()
- if pots > 0:
- print('game on')
- roll()
- game()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement