-
Notifications
You must be signed in to change notification settings - Fork 16
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
[Tiny] Fix scrabble test #289
Conversation
…does not copy the state unlike other envs.
LGTM - can you add a comment explaining why |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great but would appreciate a comment as to why copy
is needed for our future selves.
@josephdviviano copy is needed because of the following:
Does that make sense? |
@alexhernandezgarcia it does make sense indeed - I just meant a comment in the test code so people in the future can also understand why there need be a copy there. |
Oh, but there are multiple places where copy is used and the explanation is kind of long :/ Should I add a general comment at the beginning of the script? |
Comment about copies added here. |
I added some inline comments as well. Thanks! |
One of the Scrabble tests was disabled in a previous PR because it was failing. This PR fixes it. The reason for the fail was that the state had to be copied because the method
step()
of the Scrabble env does not copy the state unlike other envs.