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.
Description
Fixed a rendering issue in the
agent_v_agent_demo.py file
. Previously, the demo would throw aResetNeeded
error if therender()
function was called beforereset()
. The fix involves adding areset()
call beforerender()
to ensure the environment is in a valid state for rendering.Type of change
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.