-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplayer.py
47 lines (37 loc) · 1.48 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
class U:
'''the player'''
def __repr__(self):
return self.name
def __init__(self, playername):
self.name = playername
self.D = {} # dict of horsenum: horseinstance
self.lanes = {} # dict of lanenum: horseinstance
self.racing = {} # dict of lanenum: horsenum
self.gamehorses = [] # list of horses in game
self.possy = [] # list of racers in order of race position
self.wait = 1 # 1 is normal speed or 0.5 is double speed
self.money = 23 # starting dollars
self.bets = 2
self.numhorses, self.horses_per = 0, 0
self.day, self.laps, self.betyet = 0, 0, 0
self.clued, self.seggy, self.clues = 0, 0, 0
self.met, self.bye, self.nexts = 0, 0, 0
self.checker, self.ends, self.loadnum = 0, 0, 0
self.horse_multi = 3 # multiplyer (* horses_per) for total horses
self.doors = {
1: 'bag', 2: 'guide', 3: 'bookie',
4: 'garden', 5: 'track', 6: 'sleep',
9: 'options'}
self.flags = {
'guide': 1, 'bookie': 1, 'garden': 0,
'track': 0, 'sleep': 1, 'options': 1}
self.meet = {
1: ['May Lee', 0], 2: ['Wong', 0],
3: ['Travis', 0], 4: ['Pauly', 0],
5: ['Chang', 0]}
self.bag = {
'pillow': 1, 'comb': 1}
self.someone = 'Hmm'
self.meetnext = []
self.ticket = {}
self.today = 'Now'