SHARE
TWEET

pyCoup

a guest Feb 14th, 2020 72 in 4 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Influence:
  2.     def __init__(self, p_name, p_type):
  3.         self.name = p_name
  4.         self.type = p_type
  5.         self.is_releaved = False
  6.  
  7. class Deck:
  8.     def __init__(self, p_influence_pool):
  9.         # NICKO: Class that accepts p_influence_pool (Array / list?)
  10.         self.influence = p_influence_pool
  11.         self.build()
  12.  
  13.     def build(self):
  14.         # TO-DO: build the deck here
  15.         # NICKO: For loop in all base influence and replace each item as a long list (list.append())
  16.         True #remove this when done
  17.  
  18.     def shuffle(self):
  19.         # TO-DO: shuffle the deck here
  20.         # NICKO: Get the p_influence_pool list and rearrange the list using rand (0-14)
  21.         True #remove this when done
  22.  
  23. class Player:
  24.     def __init__(self, p_name):
  25.         self.name = p_name
  26.         self.hand = []
  27.  
  28. # begin...
  29.  
  30. # examples
  31. # this_influence = influence("Banker","Economy")
  32. # this_deck = deck(False)
  33. # this_player = player("Verb")
  34.  
  35. # TO-DO: Initialize the deck
  36. influence_list = ["Duke","Assasin","Contessa","Captain","Ambassador"]
  37. deck1 = Deck(influence_list) # NICKO: !! not sure if this will work
  38.  
  39. # 5 influence cards w/ 3 copies each
  40. # NICKO: Gameplay note: total of 15 cards + 2 coins
  41.  
  42. # TO-DO: Initialize the players
  43. # 4 players or so, i.e. set names
  44.  
  45. # TO-DO: Give each player a hand
  46. # A hand consists of 2 influence cards from the deck
  47.  
  48. # TO-DO: Print all objects using a test function
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