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
|
0.00000, 3.42040
|
||||||
]
|
]
|
||||||
|
|
||||||
|
def setx(self,pos):
|
||||||
def pubeval(self, race, pos):
|
|
||||||
|
|
||||||
if pos[26] == 15:
|
|
||||||
return 99999999.0
|
|
||||||
|
|
||||||
self.x = [0]*122
|
self.x = [0]*122
|
||||||
|
|
||||||
|
@ -66,6 +62,13 @@ class Pubeval:
|
||||||
self.x[5*jm1+4] = (n-3)/2.0
|
self.x[5*jm1+4] = (n-3)/2.0
|
||||||
self.x[120] = -(pos[0]/2.0)
|
self.x[120] = -(pos[0]/2.0)
|
||||||
self.x[121] = (pos[26]/15.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
|
score = 0.0
|
||||||
if race:
|
if race:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user