SHARE
TWEET

codinggame_bronze

a guest Feb 22nd, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # on regarde les cartes de notre main  
  2. # to do :
  3.     # summon la plus grosse créa possible
  4.     for card in my_hand:
  5.         if card.cost <= my_mana:
  6.             my_hand.remove(card)
  7.             my_mana = my_mana - card.cost
  8.             if card.card_type == 0:
  9.                 print("SUMMON", card.iden, end=";")
  10. # on utilise les sorts          
  11.             elif card.card_type == 3:
  12.                 for enemy_minions in enemy_board:
  13.                     print("USE", card.iden, enemy_minions.iden, end=";")
  14.                
  15.             elif card.card_type == 1:
  16.                 for minions in my_board:
  17.                     print("USE", card.iden, minions.iden, end=";")  
  18.    
  19.  
  20. # on repère les guards
  21.     for card in enemy_board:
  22.         if card.guard == 1:
  23.             guards_list.append(card)
  24. # on attaque les guards
  25.     for card in my_board:
  26.         for enemy_minions in guards_list:
  27.             print("ATTACK", card.iden, enemy_minions.iden, end=";")
  28.  
  29.    
  30.  
  31.    
  32. # on attaque FACE
  33.     for card in my_board:
  34.         print("ATTACK", card.iden, -1, end=";")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top