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

Uploaded Source

Built Distributions

open_spiel-1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.8 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

open_spiel-1.5-cp312-cp312-macosx_11_0_arm64.whl (4.7 MB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

open_spiel-1.5-cp312-cp312-macosx_10_9_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.12 macOS 10.9+ x86-64

open_spiel-1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.8 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

open_spiel-1.5-cp311-cp311-macosx_11_0_arm64.whl (4.7 MB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

open_spiel-1.5-cp311-cp311-macosx_10_9_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

open_spiel-1.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.8 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

open_spiel-1.5-cp310-cp310-macosx_11_0_arm64.whl (4.7 MB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

open_spiel-1.5-cp310-cp310-macosx_10_9_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

open_spiel-1.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.8 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

open_spiel-1.5-cp39-cp39-macosx_11_0_arm64.whl (4.7 MB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

open_spiel-1.5-cp39-cp39-macosx_10_9_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: open_spiel-1.5.tar.gz
  • Upload date:
  • Size: 4.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for open_spiel-1.5.tar.gz
Algorithm Hash digest
SHA256 7493f9c3dc748b67d78032252dcdc156d13347500fc0f64b5bfb0bbffeb93ec3
MD5 7bd4b7482712b91c7fa2e1c4583944cd
BLAKE2b-256 59e953a19e8e3e8237a6bc66f06f445def199fbf76b253a7a5afb4e7b019ea67

See more details on using hashes here.

File details

Details for the file open_spiel-1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for open_spiel-1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 559ddffbd5b25d77665a5978a9ec75a2a95c465e66101370142caf09f2acdcd8
MD5 ddb6eb9ffea1dadde9721c4e2fb41300
BLAKE2b-256 8d064c5087879a4a5b1ae0719fb50af28a63a3fee39b2ea072e315a91e5040cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.5-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3f316d488cfdf9ff090863d2caf578e0f415f667008851c188f693f11b28b972
MD5 f2d8a340cd9541c89536568a8ac6d910
BLAKE2b-256 81f8268736ccecdcddc3e88b3f5e4effdf17f34f05b57ea0f50434f220b44813

See more details on using hashes here.

File details

Details for the file open_spiel-1.5-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for open_spiel-1.5-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b544e681912f6125089a40b5747924475799ddd0af2f2f3eb83e437447fc9939
MD5 a0e9045ef26e22f2ec6ae3fa78b41fd2
BLAKE2b-256 5b782478fd78c365e874cb6f6b29ec61adf64014f4782ccac73fba2d12499bd3

See more details on using hashes here.

File details

Details for the file open_spiel-1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for open_spiel-1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9af287ccbab60f45bba4ac48d58a29987c9ab7eccd8c226f253b40a0957295cc
MD5 bd3b81782d0d6c73a0d2b79e32d3a3e3
BLAKE2b-256 787a6f59534083025f25a2897478f20ee2f9cbc14e25d7079dbedb3ed9063229

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.5-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fdde184a10cc4ecf463b50d351b703be9d9de346114c71e6bd383b8129a23767
MD5 953a4c695691a43e986016a4412909bc
BLAKE2b-256 c8e9aebaa91ec22d0474c9ad22733d2575f89da7a0200030cfa4c8228d167f25

See more details on using hashes here.

File details

Details for the file open_spiel-1.5-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for open_spiel-1.5-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 541cfb5639ad8d0309a197851f9d8d0729e7684207ba68bd98c688efb5ad05cc
MD5 77f06e91d672873b437a59d061dee02d
BLAKE2b-256 5894abb7e805713226dfcac5c48db3f55713c3fe448438338121e328732b2f6e

See more details on using hashes here.

File details

Details for the file open_spiel-1.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for open_spiel-1.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9e2002713a81ec0c4d9b2f1a9d2f906c840af391838e240f207d66d6ed56fb48
MD5 5e880aa1ddca30dc1bf1810db688720e
BLAKE2b-256 facc8b9ccd9af4291ff74a8517565f61bfdc7bc96561676127126c73b6db0512

See more details on using hashes here.

File details

Details for the file open_spiel-1.5-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for open_spiel-1.5-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d9c4ec0605fe68e770e00060292ef46403aef36d6542fe56507fa99fbbbb5556
MD5 3b3c7e975a38ed73812c70e28773e5bb
BLAKE2b-256 6a530bf1ade0770f44bd12f5919987ac7590ea265619fd79cd585ef3092f4bff

See more details on using hashes here.

File details

Details for the file open_spiel-1.5-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for open_spiel-1.5-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 faca1e7f38e940d5be9299dea420bfaddfdfed57b13588eca60b896eb2480724
MD5 c64ebcbf84d2cc0f9c7698fc0dce6a72
BLAKE2b-256 40ffe7a9376cb7ce3d24f2b8ac52c7f765e3be1f4f130ea975cf0618fe84216d

See more details on using hashes here.

File details

Details for the file open_spiel-1.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for open_spiel-1.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cd160e2b8bbd770e1834827dbc2ae2fc0ff21fe99d7d37696a2ff81d97e7c4eb
MD5 ee66c568f78de716f8dba5bdccfc9fa5
BLAKE2b-256 dd0cf56f1079e63f66538945d28289528a4ed0c4aa6c2a82405e26621f896c2b

See more details on using hashes here.

File details

Details for the file open_spiel-1.5-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for open_spiel-1.5-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2eb576a450c570e77dbf30036ba8d87066d646ebd16436b3e6ea17d84908f775
MD5 a510e27365a99e9733a51ca0ac015f9d
BLAKE2b-256 e9d8d95cc112771905d2e9f790dbd75d6c650a97c5abc83d383a914bc7d87851

See more details on using hashes here.

File details

Details for the file open_spiel-1.5-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for open_spiel-1.5-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d72fa7afecfe05cb96fb05801fc6166aa630adf0931ed164566c750ad321d12e
MD5 4f5f35bb7df8591f3934bf34ca238e8b
BLAKE2b-256 2105690481ddef7c43241a3fffb7473d6f07dd2cfc5803febbad45613c029c59

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