Skip to main content

Play board games using the techniques from AlphaZero

Project description

Zero Play Build Status Badge Code Coverage

Teach a computer to play any game.

The zero play library is based on the ideas in the AlphaGo Zero paper and the example Python code in the alpha-zero-general project. The goal of this project is to make a reusable Python library that other projects can build on to make powerful computer opponents for many different board games. An example project that uses this library is Shibumi Games.

It includes a graphical display that you can use to play against the computer opponent or another human.

screenshot

Installing Zero Play

Even though Zero Play has a graphical display, it is a regular Python package, so you can install it with pip install zero-play. If you haven't installed Python packages before, read Brett Cannon's quick-and-dirty guide.

Then run it with the zero_play_gui command.

The default installation generates some errors about bdist_wheel that don't seem to actually cause any problems. You can either ignore them, or install wheel before installing Zero Play.

pip install wheel
pip install zero-play
zero_play_gui

Known bug on Ubuntu 20.04:

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.

This is a PySide2 bug that is missing some dependencies. You can work around it by installing those dependencies like this:

sudo apt install libxcb-xinerama0

More Information

If you'd like to help out with the project, or add your own games, see the CONTRIBUTING.md file in the source code. For all the details, look through the design journal for the project.

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

zero_play-0.1.1.tar.gz (37.4 kB view details)

Uploaded Source

Built Distribution

zero_play-0.1.1-py3-none-any.whl (46.5 kB view details)

Uploaded Python 3

File details

Details for the file zero_play-0.1.1.tar.gz.

File metadata

  • Download URL: zero_play-0.1.1.tar.gz
  • Upload date:
  • Size: 37.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

File hashes

Hashes for zero_play-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6aa908b7641410e83a498d93a8bfc89ca933c93c1a325ba1fcbbeec300756963
MD5 442ef1fda4d00573c8eee65d0cf18331
BLAKE2b-256 193e872f095679d92644d5f6f7f58c3af68578c6c63ae6ce29204d775b43815b

See more details on using hashes here.

File details

Details for the file zero_play-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: zero_play-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 46.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

File hashes

Hashes for zero_play-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 26a3643d22abfcfeff305ad7e8a046760af4e7bdd0a1e08233334c0f101918bc
MD5 c9b57e0a6bb7a220bd59f6f50c406169
BLAKE2b-256 84db861ef1cb012f4c1db0f5fffd9709c2bbd85b2f8417a07324883b2cbe04ae

See more details on using hashes here.

Supported by

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