HaileyStorm
commited on
Commit
•
a6ecab2
1
Parent(s):
190dbb0
Update chess-gpt-eval-contrastive/main.py
Browse files
chess-gpt-eval-contrastive/main.py
CHANGED
@@ -565,6 +565,8 @@ def play_games(
|
|
565 |
if illegal_moves_one != 0:
|
566 |
player_one_legal_moves -= 1
|
567 |
illegal_move_numbers.append(board.fullmove_number)
|
|
|
|
|
568 |
if (
|
569 |
board.is_game_over()
|
570 |
or player_one_resignation
|
@@ -644,7 +646,6 @@ def play_games(
|
|
644 |
# player_one.update_activations("draw")
|
645 |
# player_two.update_activations("draw")
|
646 |
|
647 |
-
if update_activations and games_saved % contrastive_activation_save_interval == 0:
|
648 |
player_one.save_activations(activations_path)
|
649 |
#player_two.save_activations(activations_path)
|
650 |
|
|
|
565 |
if illegal_moves_one != 0:
|
566 |
player_one_legal_moves -= 1
|
567 |
illegal_move_numbers.append(board.fullmove_number)
|
568 |
+
if update_activations:
|
569 |
+
player_one.update_activations("current")
|
570 |
if (
|
571 |
board.is_game_over()
|
572 |
or player_one_resignation
|
|
|
646 |
# player_one.update_activations("draw")
|
647 |
# player_two.update_activations("draw")
|
648 |
|
|
|
649 |
player_one.save_activations(activations_path)
|
650 |
#player_two.save_activations(activations_path)
|
651 |
|