HaileyStorm
commited on
Commit
•
a1b6601
1
Parent(s):
227d565
Update chess-gpt-eval/main.py
Browse files- chess-gpt-eval/main.py +2 -2
chess-gpt-eval/main.py
CHANGED
@@ -250,8 +250,8 @@ def record_results(
|
|
250 |
"p1_avg_attempts_per_illegal": 0 if player_one_illegal_moves == 0 else player_one_illegal_attempts / float(player_one_illegal_moves),
|
251 |
"p1_illegal_attemtps_pct": 1.0 if played_moves == 0 else player_one_illegal_attempts / float(player_one_illegal_attempts + player_one_legal_moves),
|
252 |
"p1_illegal_moves_pct": 1.0 if played_moves == 0 else player_one_illegal_moves / float(played_moves),
|
253 |
-
"p1_first_illegal_move_num": illegal_move_numbers[0],
|
254 |
-
"p1_avg_illegal_move_num": np.average(illegal_move_numbers),
|
255 |
"time_taken": total_time,
|
256 |
"total_moves": total_moves,
|
257 |
"illegal_moves": illegal_moves,
|
|
|
250 |
"p1_avg_attempts_per_illegal": 0 if player_one_illegal_moves == 0 else player_one_illegal_attempts / float(player_one_illegal_moves),
|
251 |
"p1_illegal_attemtps_pct": 1.0 if played_moves == 0 else player_one_illegal_attempts / float(player_one_illegal_attempts + player_one_legal_moves),
|
252 |
"p1_illegal_moves_pct": 1.0 if played_moves == 0 else player_one_illegal_moves / float(played_moves),
|
253 |
+
"p1_first_illegal_move_num": illegal_move_numbers[0] if illegal_move_numbers else 0,
|
254 |
+
"p1_avg_illegal_move_num": np.average(illegal_move_numbers) if illegal_move_numbers else 0,
|
255 |
"time_taken": total_time,
|
256 |
"total_moves": total_moves,
|
257 |
"illegal_moves": illegal_moves,
|