Oh god, I was assuming scores were integers
authorSam Moore <[email protected]>
Sat, 28 Apr 2012 14:39:17 +0000 (22:39 +0800)
committerSam Moore <[email protected]>
Sat, 28 Apr 2012 14:39:17 +0000 (22:39 +0800)
And then I made them all floats

FUCK FUCK FUCK FUCK FUCK

judge/simulator/simulate.py

index e87259e..7664a2c 100755 (executable)
@@ -206,7 +206,7 @@ for agent in agents:
                                agentFile.write(line)
                                line = oldFile.readline()
                                values = line.split(' ')
-                               agent["totalScore"] += int(values[2].strip())
+                               agent["totalScore"] += float(values[2].strip())
                                agent["Wins"] += int(values[5].strip())
                                agent["Losses"] += int(values[8].strip())
                                agent["Draws"] += int(values[11].strip())

UCC git Repository :: git.ucc.asn.au