diff --git a/pubeval.py b/pubeval.py index b3d2c95..124c36a 100644 --- a/pubeval.py +++ b/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 @@ -66,6 +62,13 @@ class Pubeval: self.x[5*jm1+4] = (n-3)/2.0 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: