self is difficult to remember
This commit is contained in:
parent
520ca077fd
commit
7b0e60f069
13
pubeval.py
13
pubeval.py
|
@ -42,11 +42,7 @@ class Pubeval:
|
|||
0.00000, 3.42040
|
||||
]
|
||||
|
||||
|
||||
def pubeval(self, race, pos):
|
||||
|
||||
if pos[26] == 15:
|
||||
return 99999999.0
|
||||
def setx(self,pos):
|
||||
|
||||
self.x = [0]*122
|
||||
|
||||
|
@ -67,6 +63,13 @@ class Pubeval:
|
|||
self.x[120] = -(pos[0]/2.0)
|
||||
self.x[121] = (pos[26]/15.0)
|
||||
|
||||
def pubeval(self, race, pos):
|
||||
|
||||
if pos[26] == 15:
|
||||
return 99999999.0
|
||||
|
||||
self.setx(pos)
|
||||
|
||||
score = 0.0
|
||||
if race:
|
||||
for i in range(122):
|
||||
|
|
Loading…
Reference in New Issue
Block a user