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.15.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.15-cp314-cp314-win_amd64.whl (10.2 MB view details)

Uploaded CPython 3.14Windows x86-64

open_spiel-1.6.15-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.15-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (14.8 MB view details)

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

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

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

open_spiel-1.6.15-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.15-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.15-cp313-cp313-macosx_11_0_arm64.whl (12.5 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

open_spiel-1.6.15-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.15-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.15-cp312-cp312-macosx_11_0_arm64.whl (12.5 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

open_spiel-1.6.15-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.15-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.15-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.15.tar.gz.

File metadata

  • Download URL: open_spiel-1.6.15.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.15.tar.gz
Algorithm Hash digest
SHA256 dbc51e3491c80b83e9eca7927f874334944fadd6a3e5c07ea650fa4b19d961ef
MD5 acdf1f4c2c24ec6f8944409cd158d72b
BLAKE2b-256 7dc54d5acd4a7468c10695db7a110d509e67fbaf053decb1201ea6d818178b06

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.15-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 eb50d007432077a40fcf85ef30b4da15b1de09b59fde88961e3858d06e62834f
MD5 f53b56ff6651c2bb2e68355c003b3648
BLAKE2b-256 4718a728a6491cf1be35ce7d452dbfa612e187964baf2626d6d34fe0cb76601d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.15-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 51e77d3a73595ac880a2381701db97359b7c62c3fad267f315e66fd197e883cf
MD5 f60463872420efdf3b8994d93564de19
BLAKE2b-256 14ceea061df1deb9cd497cb54be6065f5b0c3ba93051c3373e56fd966161fca1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.15-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f4c9b2047f818fbd90343b10912f1ea68f8b6aa3d675d66ac7d839076d483f2a
MD5 829effc6aacf004f7b8343a37b872b20
BLAKE2b-256 63b4aa10317023392b267a1c9d95e2252a08a71e56c1e928f31bc9c52d1e2d29

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.15-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 802b579048a68bbe96d458ee12633bb48a4a2f8c08c67891a8db6f3f087d23a9
MD5 5f1438dbb4f7e30ec096e31a2cd7214a
BLAKE2b-256 2b54724c90e9927e5cf6b3a0222217099fe3cdc06aae76e78c3c146378d05754

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.15-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e672ace5ea358b86b7a6b4dbe4d21c834ec81fa64f238bf5e9bb63f9de929b95
MD5 c6ff7790aef36b2d3b6bd6c2dd67011e
BLAKE2b-256 f413dec5d60717e6ce5256e25df815ca03bb3b3e26eb1dc43ce4475323771563

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.15-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3cfddf13aea04ebc30f7e1ebef5382b2268de8145358e57f71afcacd42864c09
MD5 d3ca6308973997988f4fd5bff4c14562
BLAKE2b-256 bd8687cf1764d35a3672c478c09e901d360565577ba35b0db1fbc6b2e89216c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.15-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b2a243bd6c73e50bad8dc1a607c2aa955b818fa09bb99b11dc07fbbc34925828
MD5 36b0caf75fa5cf13a16e1d227edce7bd
BLAKE2b-256 e047f5d1bcb9bc0240340071b8443a298c17e2ea926da5de2f21b895bc113de3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.15-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2db18704af983cdf56728abf0ebdd4cf3534dad3b83126d5ec8edf0734bb19f2
MD5 720a888d442aba505b356a0e1c8a99d5
BLAKE2b-256 cbdcddfe21fa8c024df8bd9f3335dc464882bca888e5687b7b7c86ad0a43fb74

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.15-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4033c2d207c4afdde5608bf5fd71430653f021aa293b57ba063592c7b89d3173
MD5 b3b1e22c7a04045adf0964c3325337a9
BLAKE2b-256 34f28c074005ea6d2005e12d17d84663c4e7424422aca48562a272cff08d1696

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.15-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7b2814bf39f2ab9302723af1f3934c842cefa9371ec77b1ebf8400fb917df793
MD5 a78362a9847b966decaa9ba4b6235b69
BLAKE2b-256 aa7ca9cedebaf8f779be236437766072734c2f9bfbdd95bf4f469002de8d889f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.15-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 475ed977038b20131d71c14059f35f82504285d3fe17426a1725790464ac281c
MD5 c9078d16b07e3534953ec68efa2276c4
BLAKE2b-256 b6a9c6dc4ae444a5b39c9249156c7b6ad4088c1e627f3a7bead7ad589a11a6b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.15-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3ef1e0b362d06386645db16c685ba9c2a28bfa4b56df2c530e585232b0063e02
MD5 94f66997b2190b471f967505ba3ff44c
BLAKE2b-256 d7a8b7556e0ab2ee332a5b00f3cdeeba768b791df8f7b14fad9e3ef83efe5920

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.15-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f2d4be432906791b539d7b627ce351838f10c73693baaf3d1da229f865585fd7
MD5 ee4b610c1c99d7ac0c1b63820d61ea52
BLAKE2b-256 7df4db95b51688715e7f2db43a68b427bdcae651127da4a888bf49a619344ccc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.15-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d3363d4c6a5eaaff894c8978997a256bf982a8db308d4002cb8bc303c26421df
MD5 edd126f7f5be7e4e966d49adcd9fea36
BLAKE2b-256 c0d0390bb2aa8c344d1cd6cbf6a80f0c94b3fef6346919829279532ea395f886

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.15-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2242ff5a35b3434f7dfcde01661618cd5dbc0b7cad335190fa70be4b088a5862
MD5 a9237f08b60af9018b7dd28c33c617fd
BLAKE2b-256 a4d5ed43b17bd24c2fec2665f352145e3dc657ec99d32444e68c2b55a03a588d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.15-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1ce31ae07f81dc69eb004f3d6c51dab77ff385c56456e5434531550202010a85
MD5 b9663528b279899186b9d82ee324f035
BLAKE2b-256 0c2fe402ea9502a934a23ec889af9a421ac1584f15db818841ffbfac42f5cd2c

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