-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathround.py
More file actions
36 lines (29 loc) · 867 Bytes
/
round.py
File metadata and controls
36 lines (29 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
class Round:
def __init__(self):
print(" ")
def draw_a_card(self, deck): # Take the card from the top of the deck
if(len(deck)>0):
card = deck.pop(0)
return card, deck
else:
return None, deck
class Player:
def __init__(self, name):
self.name = name
self.cards_drawn = []
self.score = 0
self.multiplier = 1
self.is_turn_over = False
self.number_cards_drawn = []
self.second_chance = False
class HumanPlayer:
def __init__(self):
self.info = Player("Human Player")
def chooseAction(self):
player_input = input("Would you like a new card? (y/n)) \n")
return player_input
class NPCPlayer:
def __init__(self):
self.info = Player("NPC Player")
def chooseAction(self):
return "y"