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

Uploaded CPython 3.14Windows x86-64

open_spiel-2.0.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (16.1 MB view details)

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

open_spiel-2.0.1-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (15.3 MB view details)

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

open_spiel-2.0.1-cp314-cp314-macosx_11_0_arm64.whl (12.4 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

open_spiel-2.0.1-cp313-cp313-win_amd64.whl (10.4 MB view details)

Uploaded CPython 3.13Windows x86-64

open_spiel-2.0.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (16.0 MB view details)

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

open_spiel-2.0.1-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (15.3 MB view details)

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

open_spiel-2.0.1-cp313-cp313-macosx_11_0_arm64.whl (12.9 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

open_spiel-2.0.1-cp312-cp312-win_amd64.whl (10.4 MB view details)

Uploaded CPython 3.12Windows x86-64

open_spiel-2.0.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (16.0 MB view details)

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

open_spiel-2.0.1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (15.3 MB view details)

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

open_spiel-2.0.1-cp312-cp312-macosx_11_0_arm64.whl (12.9 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

open_spiel-2.0.1-cp311-cp311-win_amd64.whl (10.4 MB view details)

Uploaded CPython 3.11Windows x86-64

open_spiel-2.0.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (16.0 MB view details)

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

open_spiel-2.0.1-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (15.2 MB view details)

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

open_spiel-2.0.1-cp311-cp311-macosx_11_0_arm64.whl (12.9 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for open_spiel-2.0.1.tar.gz
Algorithm Hash digest
SHA256 904fd9cd7244432c31f7b6345be29a065526e0f23778fc4712682bebe6ce43f3
MD5 85609f940785c8f448300a410ce7ab88
BLAKE2b-256 e1405c0e66c3dbfc729047eaede515a578903c20528d7e8048e04bdd04b3e0fd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: open_spiel-2.0.1-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 10.5 MB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.14

File hashes

Hashes for open_spiel-2.0.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 3d2d845e852641c67bcc5eef62fac21f7ee75bac892aa49d9b6db2f7a947a469
MD5 8c734c6bea86dd7c60478b9da2c24dba
BLAKE2b-256 51d237cafa0ab9b7e3024c97b44c0ea59eb686277ad3694097c09f6f4ff30dd8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-2.0.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3f695b6b4d437ef969c19b17b35e865397f7cb76c4614bce0c5868872c3534be
MD5 8b4ec6adb95215014d9ede39b353b55f
BLAKE2b-256 0eab22d1926afa727a474e9c440192d2fa51e1d474b3c46ba0b4ba98b0bc87aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-2.0.1-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8f8d8ead391551e9c5557ed75a9779d1a780cf866cca7577990914245a3782b5
MD5 8b3c4584b76aaa7d47e868afce0419c5
BLAKE2b-256 84428856de726d42249c9066679bf314425826b88308b0ed0bb10ca43e0a5d3d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-2.0.1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 51bcc802fb5b19029bb429e7dc3feebb37555a63e8353191bae0d1d5cf2a8cbf
MD5 79446560194cd8023daf603d30f04d6f
BLAKE2b-256 c30c9459b20de6a8e191d4fd51f1695b8dee6865820c2857e1b86c5a2bf6bb1c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: open_spiel-2.0.1-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 10.4 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.14

File hashes

Hashes for open_spiel-2.0.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 94b3cb38a005146faff87baaa0f2520685c8ff80c237b1cc4687c9d5c003e350
MD5 e3c01d069ea9b7e7b3dc26dc2b3976f0
BLAKE2b-256 439aaacdb9f77fcd1b990079de575be1d63b8d47e3b957d46597fd187a383f2b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-2.0.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 51c211d85a2d40d520c7580d0fef670b964a7374ef865496680da8895d7611c8
MD5 fb4d4bfaa514f9fe570edd04c78a50cd
BLAKE2b-256 702510a444a90471dd44061951b2deef5e955ba0989c8b285fc2d88f2fc37a1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-2.0.1-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 400cfd70950a172e17328012d387251660d184c0dff46c246cafd64aa69bd724
MD5 666b6f83b45630e4b2947ae71bff61a6
BLAKE2b-256 48c2f861e395899f8ccb4b594deed6a5a7d9a13fcd20bba57d7564f21b08b608

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-2.0.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6c7836cff80ab6a700e2dcc5b0cc61ec37c69a740e000d0640d2837784e13aaa
MD5 3f51b601f6244fa49846608a5c4b6119
BLAKE2b-256 82987f30c5e129a1e23bb5b72bf4ad73042920fe304e78e8e2baf7c8e7b0ef00

See more details on using hashes here.

File details

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

File metadata

  • Download URL: open_spiel-2.0.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 10.4 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.14

File hashes

Hashes for open_spiel-2.0.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4a5061abceea20efdb230139130035f7df3109e1da26d0ac5af217e34ad7435c
MD5 c1e74b49041a7a0a96e34a8cd1f24ef2
BLAKE2b-256 8daaef42cd3870b338033fa570aa99a1d3942171ff58dcaf4956523fa82593f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-2.0.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4cda19d39990065ed20588477b5cec0309089612eea0d62dea724674b0e7ed00
MD5 2db412258c001c1d0a187162bd57c9c0
BLAKE2b-256 e3f11e44eee3e59926ddbe897f904c6e5bf694c4c472e34b7c7115a400be7213

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-2.0.1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 51eb9b2fdff999fdeb19ce98997a9374530c77a770cb81e25aa78c183a84d132
MD5 797e2468ac2171aeb7ddf70e3381e592
BLAKE2b-256 f5440920bb0426cda774936cd6424c571cb8121bc966698662d37526a15bfcba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-2.0.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5619de3ae412c8ceff9375db8dcce2b362859f007715acbac55dc42c077fdf84
MD5 5ea1df8f1108834c0d793bf1885da151
BLAKE2b-256 409f941cf1bd5aa5b21f1b7c55f96c74650d7b1154c40178efbec9bb0d73a702

See more details on using hashes here.

File details

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

File metadata

  • Download URL: open_spiel-2.0.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 10.4 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.14

File hashes

Hashes for open_spiel-2.0.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0cc5295ad390eacb36e1393baaf99b09d7c7fb63dede4df50c688cb2f8389a7d
MD5 a922f7060586aa4d71685821429ef6aa
BLAKE2b-256 e98b3ce4e5a5e467c92081f4ee5ec8b35b96b8da17e8470dfd3173e146505f5b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-2.0.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 27c3c2b878d2d7ab0347ce75c8c2f5d2d7d831c37553b921432ca0d84189992b
MD5 8d4b4c2bdeb2f0656017d82b0dba46db
BLAKE2b-256 c9da10346d5a39e0ad1a22c07d91b6c831c5d33afa05e65289ed90738666916a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-2.0.1-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 076f76ffea106aa0286b3d7fe42afdd05a2192d719699c807ed7d24a1dd9d229
MD5 d0192bae7c53280f8c9250694569f550
BLAKE2b-256 9c5365be2e3047c28de5e814fa44ddba93aa0d99d3c4d7f0cc39a2e2ae971c42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-2.0.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bdc8619004a2ffea60a7cb7175ad9af6b16e7d83da0559231f3e89d601e720f4
MD5 ed631e40082d3abf9b90e9a000374d4b
BLAKE2b-256 9c8109db288a18b1c3629c6f63499ddbc8c4b309479351bf5e4f96486b1557a7

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