Skip to content

Instantly share code, notes, and snippets.

@djm4686
Created February 1, 2018 21:31
Show Gist options
  • Save djm4686/7b826a63146023fb38901d22ff1236c4 to your computer and use it in GitHub Desktop.
Save djm4686/7b826a63146023fb38901d22ff1236c4 to your computer and use it in GitHub Desktop.
p = Player("Dan")
p.deposit(10)
amount = 3
bet = p.wager(amount) # Returns None if you dont have enough monies
if bet is not None:
h = HighOrLow([p])
bet.set_type(HighOrLowBetType(HighOrLowBetType.High))
h.add_bet(bet)
h.start_round()
print("Cash on hand: {} gold".format(p.bank))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment