In [1]:
import random

In [2]:
def shuffled_deck():
        deck = []
        for suit in ['C', 'D', 'H', 'S']:
                for num in range(6, 15):
                        deck.append(  [(num), suit]  )
        random.shuffle(deck)
        return deck

In [3]:
def card_name(card):
    if card == 11:
        return 'J'
    elif card == 12:
        return 'Q'
    elif card == 13:
        return 'K'
    elif card == 14:
        return 'A'
    else:
        return str(card)

In [12]:
def deal_cards():
    return deck[:12:2], deck[1:13:2], deck[13:-1], deck[-1]

def init():
        print("The game 'Stupid' is now starting...", )
        global deck,hand,trump_suit,trump_deck,trump_show,ontable,deadcards,Round, attacker, defender
        deck = shuffled_deck()
        hand = {}
        hand["P1"], hand["P2"], trump_deck, trump_show = deal_cards()
        trump_suit = trump_show[1]
        ontable = []
        deadcards = [] #panaudotu kortu kruva
        attacker = "P1"
        defender = "P2"
        Round = 0
init()


("The game 'Stupid' is now starting...",)

In [ ]:
def attacker_switch():
        global attacker,defender
        if attacker == "P1":
                attacker = "P2"
                defender = "P1"
        else:
                attacker = "P1"
                defender = "P2"

In [ ]:
### in game mechanics

def round_start():
        global Round
        Round += 1
        print ("\n############################## Round Nr.:", Round)
        print ("Trump deck: %s\n" %trump_deck, "Attacker hand:", hand[attacker], "Defender hand:", hand[defender])
        print ("Trump show:",trump_show)
        print ("Trump suit:",trump_suit)

In [6]:
def att_first(): #to change
        global att_choice
        att_choice = hand[attacker].pop(0)
        ontable.append([att_choice])
        return att_choice

def att_choice_list(): #lists attack possibilities
        result = []
        
        onboard_numbers = [c[0] for c in plain(ontable)]
        print("onboard_numbers",onboard_numbers)
        #~ if len(att_possible_cards) > 0:
                #~ att_possible_cards.pop(0)
        #~ c1 = att_choice #### #need to clarify that I look for first item in the item
        for c1 in hand[attacker]:
                if c1[0] in onboard_numbers: 
                        print("Reflect possible")
                        result.append(c1)
        return result

In [7]:
def def_is_def_pos(c1):
        global def_choice, def_choice_list
        def_choice_list = []
        def_choice = []
        c1 = att_choice #### #need to clarify that I look for first item in the item
        for c2 in hand[defender]:
                #~ print ("These two cards will be compared: ",c1, c2)
                if c1[1] == c2[1]: #Suit actions
                        #~ print("Suit actions")
                        if c1[0] < c2[0]: #Possible if higher card, suit actions.
                               #~ print("Higher same suit")
                               def_choice_list.append(c2)
                if c1[1] != trump_suit and c2[1]==trump_suit: #Trump actions
                        #~ print("Trump card available") 
                        def_choice_list.append(c2),
                if c1[0] == c2[0]: #Reflect action
                        #~ print("Reflect possible")
                        def_choice_list.append(c2)
                #~ else:
                        #~ print("No possible moves")
        print("You have so many possible defence choices: ", len(def_choice_list), "You have the following choices: ", def_choice_list)
        return def_choice_list
#~ 
#~ if def_is_def_pos == True:
        #~ if def_number_of_choices < 2:
                #~ choice[0]
        #~ else def_choice

In [8]:
def plain(paired_cards):
        global boom
        boom = []
        for x in paired_cards:
                boom.append(x[0])
                if len(x) > 1:
                        boom.append(x[1])
        return boom
                        
def att_more():
        global att_possible_cards, att_choice
        att_choice = []
        if      att_choice_list():
                print("You have so many possible attack choices: ", len(att_choice_list()), '\n', "You have the following choices: ", att_choice_list())
                att_choice = att_choice_list()[0]
                hand[attacker].remove(att_choice)
                return True

In [9]:
def att_choose_card():
        passc1
def att_bita():
        attacker_switch()
        round_end()
        
def att_stop():
        if len.att_choice_list < 2:
                att_bita()
        pass
        
def def_ence():
        for x in hand[defender]:
                #compare each_item_in_hand_defender to last items first line.
                #if valid put to a list possible_cards
                #choose a card from possible cards
                if x == def_choice_list: #compare items
                        def_choice = hand[defender].pop(0)
                        print("def_choice",def_choice)
                        ontable[-1].append(def_choice)
                        return def_choice

In [10]:
def def_give_up():
        pass
def def_refl():
        pass
def def_after_refl():
        nm_of_cards_to_defend = 0
        nm_of_cards_to_defend = count(onboard)
        cards_to_defend = []
        for x in onboard:
                if x[2] == "":
                        cards_to_defend(x.pop)
                        nm_of_cards_to_defend += 1
        print("Cards to defend: ", cards_to_defend)
        pass

def round_end():
                for i in range(6 - len(hand[attacker])):
                        if len(trump_deck) > 0:
                                hand[attacker].append(trump_deck.pop())
                for i in range(6 - len(hand[defender])):
                        if len(trump_deck) > 0:
                                hand[defender].append(trump_deck.pop())

#~ how_attack = att_choice_list[0]
#~ print("Attack1",how_attack)
def namo():
        global ontable
        print("namo", ontable)
        hand[defender].extend(plain(ontable))
        ontable = []
        
def bita():
        global ontable
        print("bita", ontable)
        deadcards.extend(plain(ontable))
        ontable = []

def round_flow():
        move = 0
        round_start() #initializes round
        while True: # Round goes on
                move += 1
                print("---",move ,"---")
                if len(ontable) == 0:
                        att_first() #initializes attackers first card
                else:
                        att_more()
                        if not att_choice:
                                bita()
                                break
                print ("Attacker chose: ",att_choice, "\n")
                if def_is_def_pos(att_choice): #inserts attackers choice and returns possible moves
                        def_choice = def_choice_list[0]
                        print("def_choice",def_choice)
                        hand[defender].remove(def_choice)
                        ontable[-1].append(def_choice)
                else:
                        namo()
                        print("Defending player takes cards: ", ontable)
        round_end()#inits end of round. Gives cards. (Reports stats of moves) 
        

def game_flow():
        while hand[defender] and hand[attacker]:
                round_flow()
                attacker_switch()

In [11]:
game_flow()


('\n############################## Round Nr.:', 1)
("Trump deck: [[6, 'C'], [7, 'D'], [9, 'S'], [8, 'S'], [14, 'S'], [11, 'D'], [9, 'D'], [8, 'D'], [7, 'S'], [14, 'D'], [11, 'S'], [10, 'C'], [11, 'C'], [13, 'D'], [13, 'C'], [10, 'H'], [9, 'H'], [12, 'D'], [12, 'S'], [10, 'S'], [11, 'H'], [7, 'C']]\n", 'Attacker hand:', [[12, 'C'], [8, 'H'], [6, 'D'], [9, 'C'], [6, 'S'], [6, 'H']], 'Defender hand:', [[13, 'S'], [12, 'H'], [14, 'H'], [8, 'C'], [7, 'H'], [14, 'C']])
('Trump show:', [10, 'D'])
('Trump suit:', 'D')
('---', 1, '---')
('Attacker chose: ', [12, 'C'], '\n')
('You have so many possible defence choices: ', 2, 'You have the following choices: ', [[12, 'H'], [14, 'C']])
('def_choice', [12, 'H'])
('---', 2, '---')
('onboard_numbers', [12, 12])
('bita', [[[12, 'C'], [12, 'H']]])
('\n############################## Round Nr.:', 2)
("Trump deck: [[6, 'C'], [7, 'D'], [9, 'S'], [8, 'S'], [14, 'S'], [11, 'D'], [9, 'D'], [8, 'D'], [7, 'S'], [14, 'D'], [11, 'S'], [10, 'C'], [11, 'C'], [13, 'D'], [13, 'C'], [10, 'H'], [9, 'H'], [12, 'D'], [12, 'S'], [10, 'S']]\n", 'Attacker hand:', [[13, 'S'], [14, 'H'], [8, 'C'], [7, 'H'], [14, 'C'], [11, 'H']], 'Defender hand:', [[8, 'H'], [6, 'D'], [9, 'C'], [6, 'S'], [6, 'H'], [7, 'C']])
('Trump show:', [10, 'D'])
('Trump suit:', 'D')
('---', 1, '---')
('Attacker chose: ', [13, 'S'], '\n')
('You have so many possible defence choices: ', 1, 'You have the following choices: ', [[6, 'D']])
('def_choice', [6, 'D'])
('---', 2, '---')
('onboard_numbers', [13, 6])
('bita', [[[13, 'S'], [6, 'D']]])
('\n############################## Round Nr.:', 3)
("Trump deck: [[6, 'C'], [7, 'D'], [9, 'S'], [8, 'S'], [14, 'S'], [11, 'D'], [9, 'D'], [8, 'D'], [7, 'S'], [14, 'D'], [11, 'S'], [10, 'C'], [11, 'C'], [13, 'D'], [13, 'C'], [10, 'H'], [9, 'H'], [12, 'D']]\n", 'Attacker hand:', [[8, 'H'], [9, 'C'], [6, 'S'], [6, 'H'], [7, 'C'], [12, 'S']], 'Defender hand:', [[14, 'H'], [8, 'C'], [7, 'H'], [14, 'C'], [11, 'H'], [10, 'S']])
('Trump show:', [10, 'D'])
('Trump suit:', 'D')
('---', 1, '---')
('Attacker chose: ', [8, 'H'], '\n')
('You have so many possible defence choices: ', 3, 'You have the following choices: ', [[14, 'H'], [8, 'C'], [11, 'H']])
('def_choice', [14, 'H'])
('---', 2, '---')
('onboard_numbers', [8, 14])
('bita', [[[8, 'H'], [14, 'H']]])
('\n############################## Round Nr.:', 4)
("Trump deck: [[6, 'C'], [7, 'D'], [9, 'S'], [8, 'S'], [14, 'S'], [11, 'D'], [9, 'D'], [8, 'D'], [7, 'S'], [14, 'D'], [11, 'S'], [10, 'C'], [11, 'C'], [13, 'D'], [13, 'C'], [10, 'H']]\n", 'Attacker hand:', [[8, 'C'], [7, 'H'], [14, 'C'], [11, 'H'], [10, 'S'], [9, 'H']], 'Defender hand:', [[9, 'C'], [6, 'S'], [6, 'H'], [7, 'C'], [12, 'S'], [12, 'D']])
('Trump show:', [10, 'D'])
('Trump suit:', 'D')
('---', 1, '---')
('Attacker chose: ', [8, 'C'], '\n')
('You have so many possible defence choices: ', 2, 'You have the following choices: ', [[9, 'C'], [12, 'D']])
('def_choice', [9, 'C'])
('---', 2, '---')
('onboard_numbers', [8, 9])
Reflect possible
('onboard_numbers', [8, 9])
Reflect possible
('onboard_numbers', [8, 9])
Reflect possible
('You have so many possible attack choices: ', 1, '\n', 'You have the following choices: ', [[9, 'H']])
('onboard_numbers', [8, 9])
Reflect possible
('Attacker chose: ', [9, 'H'], '\n')
('You have so many possible defence choices: ', 1, 'You have the following choices: ', [[12, 'D']])
('def_choice', [12, 'D'])
('---', 3, '---')
('onboard_numbers', [8, 9])
('bita', [[[8, 'C'], [9, 'C'], [12, 'D']]])
('\n############################## Round Nr.:', 5)
("Trump deck: [[6, 'C'], [7, 'D'], [9, 'S'], [8, 'S'], [14, 'S'], [11, 'D'], [9, 'D'], [8, 'D'], [7, 'S'], [14, 'D'], [11, 'S'], [10, 'C']]\n", 'Attacker hand:', [[6, 'S'], [6, 'H'], [7, 'C'], [12, 'S'], [13, 'D'], [11, 'C']], 'Defender hand:', [[7, 'H'], [14, 'C'], [11, 'H'], [10, 'S'], [10, 'H'], [13, 'C']])
('Trump show:', [10, 'D'])
('Trump suit:', 'D')
('---', 1, '---')
('Attacker chose: ', [6, 'S'], '\n')
('You have so many possible defence choices: ', 1, 'You have the following choices: ', [[10, 'S']])
('def_choice', [10, 'S'])
('---', 2, '---')
('onboard_numbers', [6, 10])
Reflect possible
('onboard_numbers', [6, 10])
Reflect possible
('onboard_numbers', [6, 10])
Reflect possible
('You have so many possible attack choices: ', 1, '\n', 'You have the following choices: ', [[6, 'H']])
('onboard_numbers', [6, 10])
Reflect possible
('Attacker chose: ', [6, 'H'], '\n')
('You have so many possible defence choices: ', 3, 'You have the following choices: ', [[7, 'H'], [11, 'H'], [10, 'H']])
('def_choice', [7, 'H'])
('---', 3, '---')
('onboard_numbers', [6, 10])
('bita', [[[6, 'S'], [10, 'S'], [7, 'H']]])
('\n############################## Round Nr.:', 6)
("Trump deck: [[6, 'C'], [7, 'D'], [9, 'S'], [8, 'S'], [14, 'S'], [11, 'D'], [9, 'D'], [8, 'D']]\n", 'Attacker hand:', [[14, 'C'], [11, 'H'], [10, 'H'], [13, 'C'], [14, 'D'], [7, 'S']], 'Defender hand:', [[7, 'C'], [12, 'S'], [13, 'D'], [11, 'C'], [10, 'C'], [11, 'S']])
('Trump show:', [10, 'D'])
('Trump suit:', 'D')
('---', 1, '---')
('Attacker chose: ', [14, 'C'], '\n')
('You have so many possible defence choices: ', 1, 'You have the following choices: ', [[13, 'D']])
('def_choice', [13, 'D'])
('---', 2, '---')
('onboard_numbers', [14, 13])
Reflect possible
Reflect possible
('onboard_numbers', [14, 13])
Reflect possible
Reflect possible
('onboard_numbers', [14, 13])
Reflect possible
Reflect possible
('You have so many possible attack choices: ', 2, '\n', 'You have the following choices: ', [[13, 'C'], [14, 'D']])
('onboard_numbers', [14, 13])
Reflect possible
Reflect possible
('Attacker chose: ', [13, 'C'], '\n')
('You have so many possible defence choices: ', 0, 'You have the following choices: ', [])
('namo', [[[14, 'C'], [13, 'D']]])
('Defending player takes cards: ', [])
('---', 3, '---')
('Attacker chose: ', [11, 'H'], '\n')
('You have so many possible defence choices: ', 3, 'You have the following choices: ', [[11, 'C'], [11, 'S'], [13, 'D']])
('def_choice', [11, 'C'])
('---', 4, '---')
('onboard_numbers', [11, 11])
('bita', [[[11, 'H'], [11, 'C']]])
('\n############################## Round Nr.:', 7)
("Trump deck: [[6, 'C'], [7, 'D'], [9, 'S'], [8, 'S'], [14, 'S']]\n", 'Attacker hand:', [[7, 'C'], [12, 'S'], [10, 'C'], [11, 'S'], [14, 'C'], [13, 'D']], 'Defender hand:', [[10, 'H'], [14, 'D'], [7, 'S'], [8, 'D'], [9, 'D'], [11, 'D']])
('Trump show:', [10, 'D'])
('Trump suit:', 'D')
('---', 1, '---')
('Attacker chose: ', [7, 'C'], '\n')
('You have so many possible defence choices: ', 5, 'You have the following choices: ', [[14, 'D'], [7, 'S'], [8, 'D'], [9, 'D'], [11, 'D']])
('def_choice', [14, 'D'])
('---', 2, '---')
('onboard_numbers', [7, 14])
Reflect possible
('onboard_numbers', [7, 14])
Reflect possible
('onboard_numbers', [7, 14])
Reflect possible
('You have so many possible attack choices: ', 1, '\n', 'You have the following choices: ', [[14, 'C']])
('onboard_numbers', [7, 14])
Reflect possible
('Attacker chose: ', [14, 'C'], '\n')
('You have so many possible defence choices: ', 3, 'You have the following choices: ', [[8, 'D'], [9, 'D'], [11, 'D']])
('def_choice', [8, 'D'])
('---', 3, '---')
('onboard_numbers', [7, 14])
('bita', [[[7, 'C'], [14, 'D'], [8, 'D']]])
('\n############################## Round Nr.:', 8)
("Trump deck: [[6, 'C']]\n", 'Attacker hand:', [[10, 'H'], [7, 'S'], [9, 'D'], [11, 'D'], [9, 'S'], [7, 'D']], 'Defender hand:', [[12, 'S'], [10, 'C'], [11, 'S'], [13, 'D'], [14, 'S'], [8, 'S']])
('Trump show:', [10, 'D'])
('Trump suit:', 'D')
('---', 1, '---')
('Attacker chose: ', [10, 'H'], '\n')
('You have so many possible defence choices: ', 2, 'You have the following choices: ', [[10, 'C'], [13, 'D']])
('def_choice', [10, 'C'])
('---', 2, '---')
('onboard_numbers', [10, 10])
('bita', [[[10, 'H'], [10, 'C']]])
('\n############################## Round Nr.:', 9)
('Trump deck: []\n', 'Attacker hand:', [[12, 'S'], [11, 'S'], [13, 'D'], [14, 'S'], [8, 'S']], 'Defender hand:', [[7, 'S'], [9, 'D'], [11, 'D'], [9, 'S'], [7, 'D'], [6, 'C']])
('Trump show:', [10, 'D'])
('Trump suit:', 'D')
('---', 1, '---')
('Attacker chose: ', [12, 'S'], '\n')
('You have so many possible defence choices: ', 3, 'You have the following choices: ', [[9, 'D'], [11, 'D'], [7, 'D']])
('def_choice', [9, 'D'])
('---', 2, '---')
('onboard_numbers', [12, 9])
('bita', [[[12, 'S'], [9, 'D']]])
('\n############################## Round Nr.:', 10)
('Trump deck: []\n', 'Attacker hand:', [[7, 'S'], [11, 'D'], [9, 'S'], [7, 'D'], [6, 'C']], 'Defender hand:', [[11, 'S'], [13, 'D'], [14, 'S'], [8, 'S']])
('Trump show:', [10, 'D'])
('Trump suit:', 'D')
('---', 1, '---')
('Attacker chose: ', [7, 'S'], '\n')
('You have so many possible defence choices: ', 4, 'You have the following choices: ', [[11, 'S'], [13, 'D'], [14, 'S'], [8, 'S']])
('def_choice', [11, 'S'])
('---', 2, '---')
('onboard_numbers', [7, 11])
Reflect possible
Reflect possible
('onboard_numbers', [7, 11])
Reflect possible
Reflect possible
('onboard_numbers', [7, 11])
Reflect possible
Reflect possible
('You have so many possible attack choices: ', 2, '\n', 'You have the following choices: ', [[11, 'D'], [7, 'D']])
('onboard_numbers', [7, 11])
Reflect possible
Reflect possible
('Attacker chose: ', [11, 'D'], '\n')
('You have so many possible defence choices: ', 1, 'You have the following choices: ', [[13, 'D']])
('def_choice', [13, 'D'])
('---', 3, '---')
('onboard_numbers', [7, 11])
Reflect possible
('onboard_numbers', [7, 11])
Reflect possible
('onboard_numbers', [7, 11])
Reflect possible
('You have so many possible attack choices: ', 1, '\n', 'You have the following choices: ', [[7, 'D']])
('onboard_numbers', [7, 11])
Reflect possible
('Attacker chose: ', [7, 'D'], '\n')
('You have so many possible defence choices: ', 0, 'You have the following choices: ', [])
('namo', [[[7, 'S'], [11, 'S'], [13, 'D']]])
('Defending player takes cards: ', [])
('---', 4, '---')
('Attacker chose: ', [9, 'S'], '\n')
('You have so many possible defence choices: ', 2, 'You have the following choices: ', [[14, 'S'], [11, 'S']])
('def_choice', [14, 'S'])
('---', 5, '---')
('onboard_numbers', [9, 14])
('bita', [[[9, 'S'], [14, 'S']]])
('\n############################## Round Nr.:', 11)
('Trump deck: []\n', 'Attacker hand:', [[8, 'S'], [7, 'S'], [11, 'S']], 'Defender hand:', [[6, 'C']])
('Trump show:', [10, 'D'])
('Trump suit:', 'D')
('---', 1, '---')
('Attacker chose: ', [8, 'S'], '\n')
('You have so many possible defence choices: ', 0, 'You have the following choices: ', [])
('namo', [[[8, 'S']]])
('Defending player takes cards: ', [])
('---', 2, '---')
('Attacker chose: ', [7, 'S'], '\n')
('You have so many possible defence choices: ', 1, 'You have the following choices: ', [[8, 'S']])
('def_choice', [8, 'S'])
('---', 3, '---')
('onboard_numbers', [7, 8])
('bita', [[[7, 'S'], [8, 'S']]])
('\n############################## Round Nr.:', 12)
('Trump deck: []\n', 'Attacker hand:', [[6, 'C']], 'Defender hand:', [[11, 'S']])
('Trump show:', [10, 'D'])
('Trump suit:', 'D')
('---', 1, '---')
('Attacker chose: ', [6, 'C'], '\n')
('You have so many possible defence choices: ', 0, 'You have the following choices: ', [])
('namo', [[[6, 'C']]])
('Defending player takes cards: ', [])
('---', 2, '---')
---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
<ipython-input-11-4d29a71ece4f> in <module>()
----> 1 game_flow()

<ipython-input-10-79536aaeed8f> in game_flow()
     65 def game_flow():
     66         while hand[defender] and hand[attacker]:
---> 67                 round_flow()
     68                 attacker_switch()

<ipython-input-10-79536aaeed8f> in round_flow()
     45                 print("---",move ,"---")
     46                 if len(ontable) == 0:
---> 47                         att_first() #initializes attackers first card
     48                 else:
     49                         att_more()

<ipython-input-6-a1927e4197ba> in att_first()
      1 def att_first(): #to change
      2         global att_choice
----> 3         att_choice = hand[attacker].pop(0)
      4         ontable.append([att_choice])
      5         return att_choice

IndexError: pop from empty list

In [13]:
#~ def attack(defender, attackers):
        #~ if attack_defence1 is empty:
        #~ attack_defence1.append(choice)
        #~ elif
        #~ attack_defence2 is empty:
        #~ attack_defence2.append(choice)
        #~ elif
        #~ attack_defence3 is empty:
        #~ attack_defence3.append(choice)
        #~ elif
        #~ attack_defence4 is empty:
        #~ attack_defence4.append(choice)
        #~ elif
        #~ attack_defence5 is empty:
        #~ attack_defence5.append(choice)
        #~ elif
        #~ attack_defence6 is empty:
        #~ attack_defence6.append(choice)

#~ def defence(defenders_choice):
	#~ with_to_defend = ""
	#~ if defenders_choice #same power as attacking card
		#~ move_defender_status
	#~ elif defenders_choice #right to one attack#
		#~ attack_defence.append
	#~ elif defenders_choice #right to many attacks#
		#~ which_to_defend = raw_input (#listattacks to defend#)
	#~ else 
		#~ defenders_choice #cannot fend of any attacks

#    print ("Round %d" % round")
#    who_attacks = #1 or 2. Kuris zaidejas puola
#    whos_turn = #1 or 2. Kuriam zaidejui reikia mesti korta
#    raw_input. Player sees all his cards and puts a card. Also, being able to put two cards.
#    raw_input. Player2 sees the cards on table and his cards. Choose to reply.
#	ontable.extend ([card1,card2])
	# players_choice
#	print "Player One plays the %s of %s." % (card_name(card1[0]), card1[1]) #to run few times
   	# players_choice
#   	print "Player Two plays the %s of %s." % (card_name(card2[0]), card2[1])
	#if one drops last card and the one that loses ..
	#if player is underattack and does not defend #add on_table to defender_stack
	#switching stacks. If player replies with #samecard[0] attacker turns into deffender, deffenders move.
    
#def print_both_hands:
#	print hand1
#	print hand2

#def print_all:
#	print deck
#	print coser_stack
#	print hand1
#	print hand2
#	print dead_cards



#~ def start_game()

#~ while Round < 2:
    #~ Round += 1
    #~ attacker_switch()
    #~ move = 0    
    #~ while True:
            #~ hand[attacker]
            #~ print("Attacker: %s\n " %attacker, hand[attacker], "\n")
            #~ att_choice = hand[attacker].pop(0)
            #~ print(att_choice)
            #~ attacker_choice = att_choice
            #~ choice = input("What card would you like to attack with? (Use acronims like AS or JD)")  # print hand1 alternatively print hand
            #~ if attacker_cRound += 1hoice in hand[attacker]: #if choice in attackers_hand ORMORESIMPLE if choice == "KS":
                #~ ontable.append(attacker_choice)
                #~ print("Attacking player chose: %s \n"%attacker_choice)
                #~ print("Ontable: %s \n"%ontable)
            #~ else:
                #~ print ("The card you chose is not in your hand" )
                #~ print ("round",Round)
            #~ move +=1
            #~ print("Move nr:",move,"\n")
#sukurti
#attackers_move(attacker):

In [13]:


In [ ]: