HaileyStorm commited on
Commit
afddca0
1 Parent(s): 0983e34

Update chess-gpt-eval/main.py

Browse files
Files changed (1) hide show
  1. chess-gpt-eval/main.py +3 -1
chess-gpt-eval/main.py CHANGED
@@ -241,8 +241,10 @@ def record_results(
241
  # resignation / failed move situation I didn't think of
242
  # -1e10 at least ensures it doesn't fail silently
243
  if "-" in result:
244
- player_one_score = float(result.split("-")[0])
 
245
  player_two_score = float(result.split("-")[1])
 
246
  elif result == "*": # Loss due to hitting max moves
247
  player_one_score = 0
248
  player_two_score = 1
 
241
  # resignation / failed move situation I didn't think of
242
  # -1e10 at least ensures it doesn't fail silently
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
250
  player_two_score = 1