-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlayer.py
30 lines (24 loc) · 1022 Bytes
/
Player.py
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
from Card import Card
class Player:
name = 'Player'
# Return true to draw
def DrawOrBank(self, nextData: dict, returnData: list):
raise Exception("NotImplementedException")
# Return true to draw
def DrawOrCall(self, stacks: list[Card], nextData: dict, returnData: list):
raise Exception("NotImplementedException")
def PlaceInStack(self, card: Card, stacks: list[Card], stackIds: list[int], nextData: dict, returnData: list):
raise Exception("NotImplementedException")
def TakeStack(self, stackIds: list[int], nextData: dict, returnData: list):
raise Exception("NotImplementedException")
def SleepTime(self, sleepType):
if sleepType == 'draw_before':
return 1
if sleepType == 'draw_after':
return 1
if sleepType == 'placeStack_before':
return 2
if sleepType == 'pickStack_before':
return 2.5
if sleepType == 'pickStack_after':
return 2.5