Gym Janggi provides an reinforcement learning environment for Korean chess called Janggi. As an OpenAI Gym environment, this package can be used for reinforcement learning algorithms, such as AlphaZero.
Check out the GitHub Page for Gym environment documentation.
-
Install package via pip:
pip install gym-janggi
-
Import in your Python module:
import gym
import gym_janggi
-
Make a Gym environment instance:
gym.make("gym_janggi/Janggi-v0")
Check out the Documentation section for more details.
Gym Janggi is originally designed to be imported by other packages and provide a Gym environemnt for Janggi, but if you want to check if the package itself is working, you can follow these steps:
-
Clone the repository:
git clone https://github.com/sungho-cho/gym-janggi.git
-
Install the module:
pip install -e .
-
Run
play.py
, which generates a game with a series of random moves:python gym_janggi/play.py
If you see the UI window and moves being played, the package is working!
Check out the PyPi Package for releases.
This package is licensed under the GNU General Public License v3.0.