self is difficult to remember

This commit is contained in:
Alexander Munch-Hansen 2018-03-13 08:55:54 +01:00
parent 520ca077fd
commit 7b0e60f069

View File

@ -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):