Blackjack'e merak sardığım sıralar yazmıştım :), belki birinin işine yarayabilir, rnek olabilir, from random import choice, shuffleJ, Q, K, A = 10,10,10,11cards = pbet=0dbet=0ngame=0def choseCard : shuffle return choice def totalCard : num_a = cards. count sumcards = sum if sumcards > 21 and num_a > 0: sumcards -= 10 return sumcardsdef blackJack : black = cards. count(10) jack = cards. count if black > 0 and jack > 0 and len 2: return True else: return Falsewhile True: ngame+=1 pcards= dcards= pcards. append(choseCard pcards. append(choseCard dcards. append(choseCard dcards. append(choseCard dshow = choice print "# " 30 while True: print "Dealer has cards " % dshow tplayer = totalCard print "You have %d cards %s and total\t%d\n" % (len , str , tplayer) if blackJack : print "You BlackJack!" pbet+=1 break elif tplayer > 21: print "You Busted." pbet-=1 dbet+=1 break answer = raw_input("Hit or Stand? : ") if answer "h": pcards. append(choseCard elif answer "s": while True: tdealer = totalCard # if tdealer < 18: if tdealer < tplayer: dcards. append(choseCard else: break tdealer = totalCard print "Dealer has\t%d cards\t%s and total\t%d" % (len , str , tdealer) print "You have\t%d cards\t%s and total\t%d\n" % (len , str , tplayer) if blackJack : print "Dealer BlackJack!" dbet+=1 elif tdealer > 21: print "Dealer Busted." dbet-=1 pbet+=1 else: if tplayer > tdealer: print "You Won." pbet+=1 elif tdealer > tplayer: print "Dealer Won." dbet+=1 else: print "Push." break else: continue print "Game: %d\t\tPlayer: %d\tDealer: %d" % answer = raw_input if answer "q": breakprint "Bye.\n" Bizim olduğumuz her yerde herşey bizim yüzümüzden olmuştur. Ben benim amk bana bişey olmasın!