Skip to content
Snippets Groups Projects
Commit 3692d622 authored by Sam Moore's avatar Sam Moore
Browse files

Oh god, I was assuming scores were integers

And then I made them all floats

FUCK FUCK FUCK FUCK FUCK
parent df9b2d14
Branches
Tags
No related merge requests found
...@@ -206,7 +206,7 @@ for agent in agents: ...@@ -206,7 +206,7 @@ for agent in agents:
agentFile.write(line) agentFile.write(line)
line = oldFile.readline() line = oldFile.readline()
values = line.split(' ') values = line.split(' ')
agent["totalScore"] += int(values[2].strip()) agent["totalScore"] += float(values[2].strip())
agent["Wins"] += int(values[5].strip()) agent["Wins"] += int(values[5].strip())
agent["Losses"] += int(values[8].strip()) agent["Losses"] += int(values[8].strip())
agent["Draws"] += int(values[11].strip()) agent["Draws"] += int(values[11].strip())
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment