- #Look at who won, and adjust scores based on that
- if results[0] == "NONE":
- red[2] += scores["NONE"]
- blue[2] += scores["NONE"]
- sys.stdout.write(" No contest. (Check AI for errors).\n")
- aiErrors += 1
- elif results[0] == "DRAW":
- red[2] += scores["DRAW"]
- blue[2] += scores["DRAW"]
- sys.stdout.write(" Draw.\n")
- draws += 1
- elif results[0] == red[1]:
- red[2] += scores["WIN"]
- blue[2] += scores["LOSS"]
- sys.stdout.write(" \""+red[0]+"\"\n")
- normalGames += 1
- elif results[0] == blue[1]:
- red[2] += scores["LOSS"]
- blue[2] += scores["WIN"]
- sys.stdout.write(" \""+blue[0]+"\"\n")
- normalGames += 1