tanliyon / gym-xiangqi

This repo sets up the environment to play Xiang Qi (chinese chess) following the OpenAI Gym framework.
GNU Lesser General Public License v3.0
32 stars 6 forks source link

Add agent-env integration test #34

Closed tanliyon closed 3 years ago

tanliyon commented 3 years ago

Description

This PR adds test to verify the integration of agent and environment. This is done by having a RandomAgent play against itself, and check that no crashes happens.

Other than that, this PR also adds more random inputs to test the environment. Other than negative actions, we now also tests for random string and random floating point number.

Type of change

How has this been tested?

CI

tanliyon commented 3 years ago

Oh yea cool. Let me set a maximum amount of actions for that test.