-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgame_rules.py
42 lines (33 loc) · 895 Bytes
/
game_rules.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
31
32
33
34
35
36
37
38
39
40
41
CHAIN_RULE = False
class Actions:
PASS = 'pass'
TAKE = 'take'
PLAY = 'play'
AllActions = [PASS,TAKE,PLAY]
class Suit:
SPADE = 'spade'
HEART = 'heart'
CLUB = 'club'
DIAMOND = 'diamond'
all = [SPADE,HEART,CLUB,DIAMOND]
class BigGameRules:
suits = [Suit.DIAMOND,Suit.HEART,Suit.SPADE,Suit.CLUB]
ranks = [1,2,3,4,5,6,7,8,9,10,11,12,13]
numStartingCards = 20
multiplicity = 10
class ClassicGameRules:
suits = [Suit.DIAMOND,Suit.HEART,Suit.SPADE,Suit.CLUB]
ranks = [1,2,3,4,5,6,7,8,9,10,11,12,13]
numStartingCards = 7
multiplicity = 1
class TinyGameRules:
suits = [Suit.HEART,Suit.DIAMOND]
ranks = [1,2,3,4,5,6,7,8]
numStartingCards = 2
multiplicity = 1
class VeryTinyGameRules:
suits = [Suit.HEART,Suit.DIAMOND]
ranks = [1]
numStartingCards = 1
multiplicity = 1
gameRules = ClassicGameRules