Example #1
0
 def show_hand(self):
     for x in range (1, self.size+1):
         print (hand.name(self.cards[x]))
Example #2
0
#welcome message

print ("*WELCOME TO BLACKJACK*")


exit = False

while exit == False:
    deck.fresh_deck()
    hand.clearhand(ai)
    hand.clearhand(player)
    print ("You have $%s to play with." % (mplayer.amount))

    #deals two cards to player

    print("\nYou received a: %s " % (hand.name(hand.deal(player))))
    print("You received a: %s\n" % (hand.name(hand.deal(player))))

    #deals two cards to ai

    print("AI received two cards...")
    print("AI's card shown: " + hand.name(hand.deal(ai))+"\n")
    hand.name(hand.deal(ai))

    #hit or stay? 



    offer = money.bet (player.owner)

    while True: