-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGame.py
More file actions
48 lines (45 loc) · 1.37 KB
/
Game.py
File metadata and controls
48 lines (45 loc) · 1.37 KB
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
48
class Game:
def __init__(self, matchID, localTeam, visitTeam, date, time, location, result, pitcherLocal, pitcherVisit, lineupBatLocal, lineupBatVisit, runs, hits, errors, prediction):
self.gameID = gameID
self.localTeam = localTeam
self.visitTeam = visitTeam
self.date = date
self.time = time
self.location = location
self.result = result
self.pitcherLocal = pitcherLocal
self.pitcherVisit = pitcherVisit
self.lineupBatLocal = lineupBatLocal
self.lineupBatVisit = lineupBatVisit
self.runs = runs
self.hits = hits
self.errors = errors
self.prediction = prediction
def getID(self):
return gameID
def getLocal(self):
return localTeam
def getVisit(self):
return visitTeam
def getDate(self):
return date
def getTime(self):
return time
def getLocation(self):
return location
def getPitcherLocal(self):
return pitcherLocal
def getPitcherVisit(self):
return pitcherVisit
def getLineupBatLocal(self):
return lineupBatLocal
def getLineupBatVisit(self):
return lineupBatVisit
def getRuns(self):
return runs
def getHits(self):
return hits
def getErrors(self):
return errors
def getPrediction(self):
return prediction