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 agent_v_agent_demo.py #132

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

Conversation

asherchok
Copy link

Description

Fixed a rendering issue in the agent_v_agent_demo.py file. Previously, the demo would throw a ResetNeeded error if the render() function was called before reset(). The fix involves adding a reset() call before render() to ensure the environment is in a valid state for rendering.

Type of change

  • [✓] Bug fix (non-breaking changes which fixes an issue)

How has this been tested?

I ran the agent_v_agent_demo.py file with and without the fix. Before the fix, the demo would throw the ResetNeeded error, but with the fix, the demo ran without any errors and displayed the Xiangqi game properly.

 Fix rendering issue by adding env.reset() before env.render() in agent_v_agent_demo.py
@asherchok
Copy link
Author

@tanliyon please merge
merge-me

@tanliyon tanliyon enabled auto-merge (squash) February 21, 2023 04:09
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.

2 participants