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 Python 3.11

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.6.14.tar.gz (5.6 MB view details)

Uploaded Source

Built Distributions

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

open_spiel-1.6.14-cp314-cp314-win_amd64.whl (10.2 MB view details)

Uploaded CPython 3.14Windows x86-64

open_spiel-1.6.14-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (15.5 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

open_spiel-1.6.14-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (14.7 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.27+ ARM64manylinux: glibc 2.28+ ARM64

open_spiel-1.6.14-cp314-cp314-macosx_11_0_arm64.whl (12.0 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

open_spiel-1.6.14-cp313-cp313-win_amd64.whl (10.1 MB view details)

Uploaded CPython 3.13Windows x86-64

open_spiel-1.6.14-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (15.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

open_spiel-1.6.14-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (14.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.27+ ARM64manylinux: glibc 2.28+ ARM64

open_spiel-1.6.14-cp313-cp313-macosx_11_0_arm64.whl (12.5 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

open_spiel-1.6.14-cp312-cp312-win_amd64.whl (10.1 MB view details)

Uploaded CPython 3.12Windows x86-64

open_spiel-1.6.14-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (15.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

open_spiel-1.6.14-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (14.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.27+ ARM64manylinux: glibc 2.28+ ARM64

open_spiel-1.6.14-cp312-cp312-macosx_11_0_arm64.whl (12.5 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

open_spiel-1.6.14-cp311-cp311-win_amd64.whl (10.1 MB view details)

Uploaded CPython 3.11Windows x86-64

open_spiel-1.6.14-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (15.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

open_spiel-1.6.14-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (14.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.27+ ARM64manylinux: glibc 2.28+ ARM64

open_spiel-1.6.14-cp311-cp311-macosx_11_0_arm64.whl (12.5 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

Details for the file open_spiel-1.6.14.tar.gz.

File metadata

  • Download URL: open_spiel-1.6.14.tar.gz
  • Upload date:
  • Size: 5.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for open_spiel-1.6.14.tar.gz
Algorithm Hash digest
SHA256 465cd8f7a0a8c5a9821d254ef2cdc03b2b33db7bfc7ad8ddfb8d2b6c3ffc256e
MD5 43deb9fcec4f8c6b96b4417bf779b26c
BLAKE2b-256 d7bac9783da207491eec069a4d8a56768d784cf829ceb6f1ecfbf19f66a689c3

See more details on using hashes here.

File details

Details for the file open_spiel-1.6.14-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for open_spiel-1.6.14-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 5eeb9384e89da6ed09d2ffe8a6c9331d6f043deccdc59ecf58e068e7b9ce5348
MD5 33936e6ca097532e84b7d1171ca901c6
BLAKE2b-256 19306c3c0fe0d5105e9ba69d23da4c4e3599c37f4c152e11627b55023ae2e459

See more details on using hashes here.

File details

Details for the file open_spiel-1.6.14-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for open_spiel-1.6.14-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 191a8d785232ad508a95ef1873931a79e4ce48061289c8754aebe3a5c99c7260
MD5 ef97c559214c28502b67e0102dd5d3fe
BLAKE2b-256 c4da2d12da0e5e63fb9bd006ec33588b166b03aec3af13f1842d9670b968de24

See more details on using hashes here.

File details

Details for the file open_spiel-1.6.14-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for open_spiel-1.6.14-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 37d27f62f27f0672656cc7f5a876c80e3a5080d4958a62dfb7aed458dde2d81c
MD5 bcdae568f06da9f6a5a813448b11a8a0
BLAKE2b-256 1253990cbd59a435dd813c47aec39a170943aea9559a98542b176e78b9bf24ff

See more details on using hashes here.

File details

Details for the file open_spiel-1.6.14-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for open_spiel-1.6.14-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 00c463181de47eaf6e4b37be811f199e30308a141ffecac161c0f51a49cfedfb
MD5 3cd88168e51533e3bfb9dfa350d2e37d
BLAKE2b-256 6d9453185fda41e17204dfa0eae19e1d9dda1b64da92595d78aade3f9434ce79

See more details on using hashes here.

File details

Details for the file open_spiel-1.6.14-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for open_spiel-1.6.14-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 0a3f4085b80a6e12a1cb892db57547f6608ae205bfb14df25ec7511fb5f1e1a2
MD5 d53478914d6a76a5bbbcd54b512f7cd6
BLAKE2b-256 96afb0ff11f1dce6778bd7a36c7f796ae737e715a1384abcb03e7d320e69ca5e

See more details on using hashes here.

File details

Details for the file open_spiel-1.6.14-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for open_spiel-1.6.14-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 39bec1f58545dac784e87307a29b0057caf07ca7ed2b3595f7bca8fcb43831b4
MD5 4912486f2ec1ae97a9e0420fa1b974da
BLAKE2b-256 429b1c3435efd3c51dd47c234fafd7fa370cf26668367653e0c3ac32b5faee99

See more details on using hashes here.

File details

Details for the file open_spiel-1.6.14-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for open_spiel-1.6.14-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 fe977e129b489913ebae18dd7a862e340b3d6dc7c9ac0eef6dd7d3e1b01986f0
MD5 5391849feecc32359534ef3ec5e965a5
BLAKE2b-256 83c435dd0ee695b87ffed0f66d1c7abd252fef8de65b6b2675aea0493d337130

See more details on using hashes here.

File details

Details for the file open_spiel-1.6.14-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for open_spiel-1.6.14-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5dd7bcc1a1e5b6a2f8db99a385f37c4834ff5ba810964940ec36ac9e9e8959ef
MD5 0bf8ea21077d01e7e6073491fa7d9fc7
BLAKE2b-256 f4f3d083845cb94437a4836149f5c661a9f1d7547da4094cfabd01661f7fdb9f

See more details on using hashes here.

File details

Details for the file open_spiel-1.6.14-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for open_spiel-1.6.14-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3b889b8768dba72e273e6210010e0656602ac866c545d014bd968c117d9f5db2
MD5 a1d6cb3198139d26524ab54a08742c71
BLAKE2b-256 db391e47cef547e39b8f43cc9579b2cf35dbe987c63fb45592dee44fd83428a5

See more details on using hashes here.

File details

Details for the file open_spiel-1.6.14-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for open_spiel-1.6.14-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4c4219e10f1c9de39fb5e3b251504244a469052542cc66e7432e37da765d3ede
MD5 31e30539f884eb0518f5a538ad2ed598
BLAKE2b-256 d767a822f8b909c856512a51f5819fac7c63fe233e4da1c92f382a5e55370b6d

See more details on using hashes here.

File details

Details for the file open_spiel-1.6.14-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for open_spiel-1.6.14-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 11a98754369f94c0a5d7d24127b900fb7d4da2f25f03eaf681f20445b6378914
MD5 be3bcf6e4b0d245449e02e0fc5d74814
BLAKE2b-256 8fb527085e500efa7d36cc8b0a0f0e90d84bc816703b48f763e073a1240080b8

See more details on using hashes here.

File details

Details for the file open_spiel-1.6.14-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for open_spiel-1.6.14-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5e64d5662dc04557eb3c6c4905fdbf21e2c0c66b58b65b5b33d2d086fa7c5cba
MD5 530918a0e554b2c979fa9c53ff185979
BLAKE2b-256 9667ed941ee0eeb1df98fb2c77c509450049a4d4212253fa396de1ea40121dad

See more details on using hashes here.

File details

Details for the file open_spiel-1.6.14-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for open_spiel-1.6.14-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 83a8aa88282b96710574fa08348e90487c517104a837eb59236f119a3b1df79b
MD5 fd2e027badc475d3d571b2b428f99f3d
BLAKE2b-256 2a088d50bcb08c956b5e7d56e0cab54e592916d4ac1a7c2528ff90f3c7666c21

See more details on using hashes here.

File details

Details for the file open_spiel-1.6.14-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for open_spiel-1.6.14-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 354b08d79ca19f8d30869c2a3bd0a3bdcc1d34b682554133de6482b60fe6aa4d
MD5 3e187a1fb4e4b035b6f894b9f60d56b6
BLAKE2b-256 84b5173e4210e8f1d42e20f97f53b70825877244ef03169e9f14498da506243d

See more details on using hashes here.

File details

Details for the file open_spiel-1.6.14-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for open_spiel-1.6.14-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 71985baec3139f3e640775458d67ca7c34254db9edc73dfefc5a6a140b28c07b
MD5 973da0579ba1600460529994a48fd4d2
BLAKE2b-256 b53b15988f423f7a1b06db94954e31006bff442c9c4931820253a2492eefc7c5

See more details on using hashes here.

File details

Details for the file open_spiel-1.6.14-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for open_spiel-1.6.14-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 98853614be89c90db9084fb990eeb942e2dbc8a5da86ff9eab10b6583526a1ba
MD5 def41b308019b4a50e55c114014a94c6
BLAKE2b-256 6630e961ebea7d40cfdd59d4bacb1ce76a8de54e5bb4b4fa9a5b3854b5f3aab1

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