Python 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 14:13:39) [GCC 4.0.1 (Apple Inc. build 5493)] Type "help", "copyright", "credits" or "license" for more information. >>> [evaluate blackjack.py] Beginning a new Blackjack game How much money does the dealer have (integer): 50 How much money does the player have (integer): 50 How many decks is the dealer using (integer): 1 The dealer has 50 dollars You have 50 dollars. How much do you want to bet? 1 Your hand currently contains 4 of Diamonds 6 of Hearts The value of this hand is 10. Would you like to hit(h) or stay(s)? h Your hand currently contains 4 of Diamonds 6 of Hearts 5 of Hearts The value of this hand is 15. Would you like to hit(h) or stay(s)? 111 Please enter in only an h or an s. Would you like to hit(h) or stay(s)? sad Please enter in only an h or an s. Would you like to hit(h) or stay(s)? h The dealer currently holds 10 of Hearts 4 of Spades Player busts with the following hand: 4 of Diamonds 6 of Hearts 5 of Hearts 7 of Hearts Dealer wins pot of 2. You currently have 49 dollars. Would you like to continue playing(y/n)? y The dealer has 51 dollars You have 49 dollars. How much do you want to bet? 1 Your hand currently contains 3 of Diamonds 6 of Clubs The value of this hand is 9. Would you like to hit(h) or stay(s)? h Your hand currently contains 3 of Diamonds 6 of Clubs 6 of Diamonds The value of this hand is 15. Would you like to hit(h) or stay(s)? h The dealer currently holds 8 of Clubs 10 of Spades Player busts with the following hand: 3 of Diamonds 6 of Clubs 6 of Diamonds King of Diamonds Dealer wins pot of 2. You currently have 48 dollars. Would you like to continue playing(y/n)? asd Please enter y if you wish to continue playing, and n if you do not wish to continue playing You currently have 48 dollars. Would you like to continue playing(y/n)? y The dealer has 52 dollars You have 48 dollars. How much do you want to bet? 1 Your hand currently contains 10 of Diamonds 5 of Spades The value of this hand is 15. Would you like to hit(h) or stay(s)? h Your hand currently contains 10 of Diamonds 5 of Spades 3 of Clubs The value of this hand is 18. Would you like to hit(h) or stay(s)? s The dealer currently holds 8 of Hearts King of Clubs The dealer hits and obtains the following card: 9 of Hearts Dealer busts with the following hand: 8 of Hearts King of Clubs 9 of Hearts Player wins pot of 2. You currently have 49 dollars. Would you like to continue playing(y/n)? y The dealer has 51 dollars You have 49 dollars. How much do you want to bet? 123 The maximum bet is 51 dollars, you cannot bet more than that. How much do you want to bet? 50 You only have 49 left, you cannot bet more than that. How much do you want to bet? 1 Your hand currently contains Jack of Hearts Ace of Hearts The value of this hand is 21. Would you like to hit(h) or stay(s)? s The dealer currently holds 9 of Clubs 5 of Clubs The dealer hits and obtains the following card: Ace of Diamonds The dealer hits and obtains the following card: Ace of Spades The dealer hits and obtains the following card: Queen of Hearts Dealer busts with the following hand: 9 of Clubs 5 of Clubs Ace of Diamonds Ace of Spades Queen of Hearts Player wins pot of 2. You currently have 50 dollars. Would you like to continue playing(y/n)? y The dealer has 50 dollars You have 50 dollars. How much do you want to bet? 1 Your hand currently contains 2 of Diamonds Queen of Spades The value of this hand is 12. Would you like to hit(h) or stay(s)? h The dealer currently holds 7 of Clubs 9 of Spades Player busts with the following hand: 2 of Diamonds Queen of Spades Queen of Clubs Dealer wins pot of 2. You currently have 49 dollars. Would you like to continue playing(y/n)? y Too few cards remaining in deck, restocking used cards and reshuffling them The dealer has 51 dollars You have 49 dollars. How much do you want to bet? 1 Your hand currently contains Jack of Clubs 2 of Hearts The value of this hand is 12. Would you like to hit(h) or stay(s)? s The dealer currently holds 7 of Spades King of Diamonds The player scores less than the dealer. The player hand is Jack of Clubs 2 of Hearts while the dealer hand is 7 of Spades King of Diamonds Dealer wins pot of 2. You currently have 48 dollars. Would you like to continue playing(y/n)? n Game ends, player has 48 dollars. >>>