Skip to main content

Custom OpenAI gym Xiangqi environment

Project description

Gym Xiangqi

CI Test Suite flake8 lint radon analysis Documentation Status PyPI version

Gym Xiangqi is a reinforcement learning environment of Xiangqi, Chinese Chess, game. The project is built on top of a popular reinforcement learning framework called OpenAI Gym.

Welcome Demo

Getting Started

Installing and using Gym Xiangqi is easy. If you are unfamiliar with Xiangqi, the Chinese Chess, we encourage you to read our Wiki page for a starter. We also welcome you to checkout our documentation page, but if you have experiences working with other OpenAI Gym environments you will be already off to a good start.

Prerequisites

In order to use Gym Xiangqi environment for your reinforcement learning project, you need to have,

  • A machine that supports video and audio outputs. For example, a headless server will not be a great choice here.
  • Python 3.6 or above

User Installation

Install Gym Xiangqi on your Python environment using pip

pip install gym-xiangqi

Test your installation by running

agent-v-agent

Development Installation

First, clone the repository

git clone https://github.com/tanliyon/gym-xiangqi.git

or download the latest release and extract the files

Enter the repository

cd gym-xiangqi

Install the core dependencies

pip install -e .

Install the dependencies for development

pip install -r requirements.txt

Software Handbook

Read through the software handbook for comprehensive explanation and development guide for the repository.

Built With

  • [OpenAI Gym] - Used for developing the reinforcement learning environment
  • [PyGame] - Used for rendering the game

Contributing

Please checkout our contribution guidelines in CONTRIBUTING.md and our software handbook.

Versioning

We use Semantic Versioning for versioning. For the versions available, see the tags on this repository.

Authors

License

This project is licensed under the GNU Lesser General Public License v3.0 - see the LICENSE.md file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gym_xiangqi-0.4.1.tar.gz (21.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gym_xiangqi-0.4.1-py3-none-any.whl (21.2 MB view details)

Uploaded Python 3

File details

Details for the file gym_xiangqi-0.4.1.tar.gz.

File metadata

  • Download URL: gym_xiangqi-0.4.1.tar.gz
  • Upload date:
  • Size: 21.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.6.9

File hashes

Hashes for gym_xiangqi-0.4.1.tar.gz
Algorithm Hash digest
SHA256 a62746fdbb28ca99621bb89fe7c559573bc0cd0dc2dda2f463bcc7e4fc6322ec
MD5 f8db986aaceb8e1b03c28dd3f64c35ca
BLAKE2b-256 0937451511d98d04af7995a69e9d33843bc83801823a6662298fa92c7207386e

See more details on using hashes here.

File details

Details for the file gym_xiangqi-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: gym_xiangqi-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 21.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.6.9

File hashes

Hashes for gym_xiangqi-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ac80676b5aed1768791e223b3e6ccb68e473ab8d3b3b081566c2bddf6d29a751
MD5 b86f400c65c0d8cf9644c1362085b1e1
BLAKE2b-256 0dcf13d7b84d749c2e072ffb4b5cd84d36c0f5dd8c369cc7d8bbb308e05b5ce8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page