HaileyStorm commited on
Commit
a138e94
1 Parent(s): afddca0

Update chess-gpt-eval/main.py

Browse files
Files changed (1) hide show
  1. chess-gpt-eval/main.py +1 -1
chess-gpt-eval/main.py CHANGED
@@ -243,7 +243,7 @@ def record_results(
243
  if "-" in result:
244
  player_one_score = result.split("-")[0]
245
  player_one_score = 0.5 if player_one_score == "1/2" else player_one_score
246
- player_two_score = float(result.split("-")[1])
247
  player_two_score = 0.5 if player_two_score == "1/2" else player_two_score
248
  elif result == "*": # Loss due to hitting max moves
249
  player_one_score = 0
 
243
  if "-" in result:
244
  player_one_score = result.split("-")[0]
245
  player_one_score = 0.5 if player_one_score == "1/2" else player_one_score
246
+ player_two_score = result.split("-")[1]
247
  player_two_score = 0.5 if player_two_score == "1/2" else player_two_score
248
  elif result == "*": # Loss due to hitting max moves
249
  player_one_score = 0