From 3692d6226e327959976843713b678e52a1302c29 Mon Sep 17 00:00:00 2001 From: Sam Moore Date: Sat, 28 Apr 2012 22:39:17 +0800 Subject: [PATCH] Oh god, I was assuming scores were integers And then I made them all floats FUCK FUCK FUCK FUCK FUCK --- judge/simulator/simulate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/judge/simulator/simulate.py b/judge/simulator/simulate.py index e87259e..7664a2c 100755 --- a/judge/simulator/simulate.py +++ b/judge/simulator/simulate.py @@ -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()) -- 2.20.1