Skip to main content

A Framework for Reinforcement Learning in Games

Project description

OpenSpiel: A Framework for Reinforcement Learning in Games

Documentation Status build_and_test

OpenSpiel is a collection of environments and algorithms for research in general reinforcement learning and search/planning in games. OpenSpiel supports n-player (single- and multi- agent) zero-sum, cooperative and general-sum, one-shot and sequential, strictly turn-taking and simultaneous-move, perfect and imperfect information games, as well as traditional multiagent environments such as (partially- and fully- observable) grid worlds and social dilemmas. OpenSpiel also includes tools to analyze learning dynamics and other common evaluation metrics. Games are represented as procedural extensive-form games, with some natural extensions. The core API and games are implemented in C++ and exposed to Python. Algorithms and tools are written both in C++ and Python.

To try OpenSpiel in Google Colaboratory, please refer to open_spiel/colabs subdirectory or start here.

OpenSpiel visual asset

Index

Please choose among the following options:

For a longer introduction to the core concepts, formalisms, and terminology, including an overview of the algorithms and some results, please see OpenSpiel: A Framework for Reinforcement Learning in Games.

For an overview of OpenSpiel and example uses of the core API, please check out our tutorials:

If you use OpenSpiel in your research, please cite the paper using the following BibTeX:

@article{LanctotEtAl2019OpenSpiel,
  title     = {{OpenSpiel}: A Framework for Reinforcement Learning in Games},
  author    = {Marc Lanctot and Edward Lockhart and Jean-Baptiste Lespiau and
               Vinicius Zambaldi and Satyaki Upadhyay and Julien P\'{e}rolat and
               Sriram Srinivasan and Finbarr Timbers and Karl Tuyls and
               Shayegan Omidshafiei and Daniel Hennes and Dustin Morrill and
               Paul Muller and Timo Ewalds and Ryan Faulkner and J\'{a}nos Kram\'{a}r
               and Bart De Vylder and Brennan Saeta and James Bradbury and David Ding
               and Sebastian Borgeaud and Matthew Lai and Julian Schrittwieser and
               Thomas Anthony and Edward Hughes and Ivo Danihelka and Jonah Ryan-Davis},
  year      = {2019},
  eprint    = {1908.09453},
  archivePrefix = {arXiv},
  primaryClass = {cs.LG},
  journal   = {CoRR},
  volume    = {abs/1908.09453},
  url       = {http://arxiv.org/abs/1908.09453},
}

Versioning

We use Semantic Versioning.

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

open_spiel-1.0.0rc1.tar.gz (3.2 MB view details)

Uploaded Source

Built Distributions

open_spiel-1.0.0rc1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.0 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

open_spiel-1.0.0rc1-cp39-cp39-macosx_10_9_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

open_spiel-1.0.0rc1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.0 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

open_spiel-1.0.0rc1-cp38-cp38-macosx_10_9_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

open_spiel-1.0.0rc1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.0 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

open_spiel-1.0.0rc1-cp37-cp37m-macosx_10_9_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

open_spiel-1.0.0rc1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.0 MB view details)

Uploaded CPython 3.6m manylinux: glibc 2.17+ x86-64

open_spiel-1.0.0rc1-cp36-cp36m-macosx_10_9_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.6m macOS 10.9+ x86-64

File details

Details for the file open_spiel-1.0.0rc1.tar.gz.

File metadata

  • Download URL: open_spiel-1.0.0rc1.tar.gz
  • Upload date:
  • Size: 3.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.2

File hashes

Hashes for open_spiel-1.0.0rc1.tar.gz
Algorithm Hash digest
SHA256 39f2ce5e28981e41a4dad7288525f654ab6b4675c470630e1cb182f13abf426b
MD5 060b93022b664255cf9d07018501c208
BLAKE2b-256 196359830908134ee822b7b0fefc92efaf31d4e84d1d328dd0c36a30a2f0a0b4

See more details on using hashes here.

File details

Details for the file open_spiel-1.0.0rc1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for open_spiel-1.0.0rc1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 85322974e1bb54a3b4647b20040633b3b0900da52587676fbe5bc3d2246e1eb7
MD5 45a6d9b2851e11597afea59ffd30e54e
BLAKE2b-256 da37c406ec889716afc0c41fc78a4494592729b3a18fbed7ad3d403f73b7873f

See more details on using hashes here.

File details

Details for the file open_spiel-1.0.0rc1-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: open_spiel-1.0.0rc1-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 3.3 MB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.2

File hashes

Hashes for open_spiel-1.0.0rc1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4cce8051fe73a6fc9444eade8dc565951e71710f772804eb4894de9a82212d6f
MD5 b179f5fe8d7e4ddf8f8e5aeb71f27900
BLAKE2b-256 626ee0642687b8573388221c1ab9afa832f2c7ad3e16ddce630a3319e095fbb4

See more details on using hashes here.

File details

Details for the file open_spiel-1.0.0rc1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for open_spiel-1.0.0rc1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1187a17c98037236c27c80245a9b2752542e80fff48952fb122cc798a3059e1a
MD5 18f0a439e48c86942a4f7440400e9851
BLAKE2b-256 6611f24c89f597e8142fdd63ca4a097d4fa571fe4308a7a5854fa9c97a4d812f

See more details on using hashes here.

File details

Details for the file open_spiel-1.0.0rc1-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: open_spiel-1.0.0rc1-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 3.3 MB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.2

File hashes

Hashes for open_spiel-1.0.0rc1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d60048815002fcabfb5b3ec787178a992b1ea3cf386581cd1493fb88566a4263
MD5 04b29edca592ae37b27e47c4f43b0524
BLAKE2b-256 ba89fb84eba214bf14c22c72e36cdeea8398c63230683b430ca5afac48e3ef56

See more details on using hashes here.

File details

Details for the file open_spiel-1.0.0rc1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for open_spiel-1.0.0rc1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1d65bac2f93dde3d9f8422c5019b3b5975745078799927e99b9bd70859f00742
MD5 b2dd8e3ff8741e39aabc28c3919b034d
BLAKE2b-256 35a04e8b6a78078c2adafff64cdf2f6013cc684d2e071ef6fd9b04a447a1f65f

See more details on using hashes here.

File details

Details for the file open_spiel-1.0.0rc1-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: open_spiel-1.0.0rc1-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 3.3 MB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.2

File hashes

Hashes for open_spiel-1.0.0rc1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0b5dde3b8dba974b585de0e0e813ce008c85578964b09bc86ca6167e302b43a9
MD5 f34c4d90d5b1e42b6d71c6daada99b91
BLAKE2b-256 7142ee601c7d8e719b4b59a8bc0580eb16b9be057b7abaee8ad2967444057133

See more details on using hashes here.

File details

Details for the file open_spiel-1.0.0rc1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for open_spiel-1.0.0rc1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b05d2bbffba19282bdbe2e359efb6760eb65e5b54ca83cc56e44be124bb53085
MD5 6224d6eff1124959c32d0f7ace02fb1a
BLAKE2b-256 e83e1f8d9c761f7ce7c3fbd7bda27b10089a9e3b6910b0a2bff554470204f176

See more details on using hashes here.

File details

Details for the file open_spiel-1.0.0rc1-cp36-cp36m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: open_spiel-1.0.0rc1-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 3.3 MB
  • Tags: CPython 3.6m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.2

File hashes

Hashes for open_spiel-1.0.0rc1-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3165db5258d9208e7d6440eae17130a994243986db54f1640b4b69e529f83d6b
MD5 0d9c7b36631605d5cb3fc3853c5dadc0
BLAKE2b-256 43abcf5956badccc7fc05c1954027c79476dd706bfe517d6364c07dd360db710

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