def rules(): if not au.ask_yes_no("Would you like to see the rules?"): input("Press any key to continue.") else: print("\n1. Place a bet.\r\n2. Roll the dice.\r\n3. Get a 7 or 11, you win, get a 2, 3, or 12, you lost, " "game over.\r\n4. Any other number, that's your point.\r\n5. Keep rolling until...\r\n6. ...you " "repeat your point, and you win, game over.\r\n7. ...you get a 7, and you lost, game over.\n") print('You have been assigned an initial bankroll of $1,000, good luck!')
def __lost_game(self): print('Oh dear, you are out of money.') self.__bank_roll = 0 self.__current_wager = 0 if au.ask_yes_no("Would You like to play again?"): exit(0) game = Game() game.start() else: quit(0)
def rules(): if not au.ask_yes_no("Would you like to see the rules?"): input("Press any key to continue.") else: print( "\n1. Place a bet.\r\n2. Roll the dice.\r\n3. Get a 7 or 11, you win, get a 2, 3, or 12, you lost, " "game over.\r\n4. Any other number, that's your point.\r\n5. Keep rolling until...\r\n6. ...you " "repeat your point, and you win, game over.\r\n7. ...you get a 7, and you lost, game over.\n" ) print( 'You have been assigned an initial bankroll of $1,000, good luck!')
def rules(): if not au.ask_yes_no("Would you like to see the rules? (o/x)"): #TODO: rules don't work input("Press any key to continue.") else: print( "\n1. Place a bet.\r\n2. shuffle the cards.\r\n3. Get a 4, 7 or 11, you win, get a 2, 3,8 or 12, you lost, " "game over.\r\n4. Any other number, that's your point.\r\n5. Keep rolling until...\r\n6. ...you " "repeat your point, and you win, game over.\r\n7. ...you get a 7, and you lost, game over.\n" ) print( 'You have been assigned an initial bankroll of $1,000, good luck! your level is 1' )
def second_phase(self): print("The __point is:", self.__point) print("Would you like to Take odds on your", self.__point, "?") take_odds = au.ask_yes_no("Take odds? (yes or no) : ") if not take_odds: self.__odds_amount = 0 input("Press any key to roll the dice.") self.streaming_roll() else: print("How much you would like would you like to bet behind your", self.__point, "? (Up to 5x): ") __odds_amount = au.ask_for_value("Odds Bet: $") if __odds_amount > self.__current_wager * 5: print("The Maximum amount of odds you can place behind the", self.__point, "is $", self.__current_wager * 5) input("Press any key to try again.") self.second_phase() else: self.__odds_amount = __odds_amount self.streaming_roll()