You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
env = pyspiel.load_game("chess")
state = env.new_initial_state()
while not state.is_terminal():
actions = state.legal_actions(state.current_player())
spiel_actions = np.array(sorted(actions))
state.apply_action(spiel_actions[0])
print(str(state))
It seems that the game ended earlier before the terminal. I checked the print of the state at the last line. It's 1nbqkbnr/rppppppp/p7/8/8/P7/RPPPPPPP/1NBQKBNR w Kk - 10 7
It does not seem to be the end of the game. What's wrong here? Thanks in advance!
The text was updated successfully, but these errors were encountered:
I just tried the following code
It seems that the game ended earlier before the terminal. I checked the print of the state at the last line. It's 1nbqkbnr/rppppppp/p7/8/8/P7/RPPPPPPP/1NBQKBNR w Kk - 10 7
It does not seem to be the end of the game. What's wrong here? Thanks in advance!
The text was updated successfully, but these errors were encountered: