HaileyStorm commited on
Commit
13c7082
1 Parent(s): c216eb0

Update chess-gpt-eval/mainvs.py

Browse files
Files changed (1) hide show
  1. chess-gpt-eval/mainvs.py +3 -3
chess-gpt-eval/mainvs.py CHANGED
@@ -541,7 +541,7 @@ def play_games(
541
  print(board)
542
 
543
  with open("game.txt", "w") as f:
544
- f.write(game_state)
545
  total_moves += 1
546
  # I increment legal moves here so player_two isn't penalized for the game ending before its turn
547
  player_one_legal_moves += 1
@@ -557,7 +557,7 @@ def play_games(
557
  #print(f"{current_move_num}", end=" ")
558
 
559
  (
560
- game_state,
561
  player_one_resignation,
562
  player_one_failed_to_find_legal_move,
563
  illegal_moves_one,
@@ -575,7 +575,7 @@ def play_games(
575
  break
576
 
577
  (
578
- game_state,
579
  player_two_resignation,
580
  player_two_failed_to_find_legal_move,
581
  illegal_moves_two,
 
541
  print(board)
542
 
543
  with open("game.txt", "w") as f:
544
+ f.write(game_state_without_move_num)
545
  total_moves += 1
546
  # I increment legal moves here so player_two isn't penalized for the game ending before its turn
547
  player_one_legal_moves += 1
 
557
  #print(f"{current_move_num}", end=" ")
558
 
559
  (
560
+ game_state_with_move_num,
561
  player_one_resignation,
562
  player_one_failed_to_find_legal_move,
563
  illegal_moves_one,
 
575
  break
576
 
577
  (
578
+ game_state_with_move_num,
579
  player_two_resignation,
580
  player_two_failed_to_find_legal_move,
581
  illegal_moves_two,