Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update game logic and error handling in spiel.py #230

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

leoni-q
Copy link

@leoni-q leoni-q commented Jan 7, 2024

The commit introduces a new function, get_observation_tensor_shape(game: Game) -> Tuple, which handles game observation dimensions and improves error handling in this respect. The game in play was switched from tic_tac_toe to backgammon. Moreover, the error handling for the method self.board.rewards() was improved to prevent a loss of the entire operation when an exception is catched.

It fixes the bug mentioned in the issue: #225

The commit introduces a new function, `get_observation_tensor_shape(game: Game) -> Tuple`, which handles game observation dimensions and improves error handling in this respect. The game in play was switched from tic_tac_toe to backgammon. Moreover, the error handling for the method `self.board.rewards()` was improved to prevent a loss of the entire operation when an exception is catched.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant