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

Uploaded Source

Built Distributions

open_spiel-1.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

open_spiel-1.0.2-cp39-cp39-macosx_10_9_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

open_spiel-1.0.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

open_spiel-1.0.2-cp38-cp38-macosx_10_9_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

open_spiel-1.0.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.2 MB view details)

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

open_spiel-1.0.2-cp37-cp37m-macosx_10_9_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

open_spiel-1.0.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.2 MB view details)

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

open_spiel-1.0.2-cp36-cp36m-macosx_10_9_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.6m macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: open_spiel-1.0.2.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.7

File hashes

Hashes for open_spiel-1.0.2.tar.gz
Algorithm Hash digest
SHA256 dbbd766a78444b4b7599312d31980ae1a33144a35ad438a7d600e5481cf5191a
MD5 16abb769be383559f6e8c1c7606165b4
BLAKE2b-256 5608e6087a487f63b8e0c7954b7fcae5dba45c0352ae8e3f8fde8a1ff95ecc77

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4a6d231b462e476e58f73729587f8fb202e7aa8eb6c7eecf1d41f8b902a867d0
MD5 ade3437853392689be3c260d44b63940
BLAKE2b-256 be648c937b31acc33809ba18bc026e1812b6d8d52d3dfdd87cc8f745b1986f82

See more details on using hashes here.

File details

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

File metadata

  • Download URL: open_spiel-1.0.2-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 3.4 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.7

File hashes

Hashes for open_spiel-1.0.2-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7d2dd5a0b98c5371173aed9d8d4aec952d88f2594bef158b3a9b83ab37c61dcf
MD5 b28d6ebf47aaefdf150755eac0b5456d
BLAKE2b-256 6b3634be4e99488c65b200df4a12ea7e6c435dea2a2806c7c8cc3cc38ddbf0e7

See more details on using hashes here.

File details

Details for the file open_spiel-1.0.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for open_spiel-1.0.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ae4848511996abdf6be6b821b729cb3ce2a9c3a559977ee4581a67361106e22f
MD5 b5e2f2b6d99dacd1bb50032a6c6d67b2
BLAKE2b-256 1a9698c5d1d2d30f79119b33cca67877e8c0b9814e68942e2a1a4514158becff

See more details on using hashes here.

File details

Details for the file open_spiel-1.0.2-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: open_spiel-1.0.2-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 3.4 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.7

File hashes

Hashes for open_spiel-1.0.2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 941cd54a61210c1b538f13c5fd075d99761e96c2a147312ccb27769b45564905
MD5 1607d81be1b173af5df337db5374c204
BLAKE2b-256 61e3abf2ec872760176a8c62754598a05ff6af072a6f5fd72b9e86500f289d73

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.0.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 275a7178dcdd82eb97863c369128c01c7428f9120f8f7317949517a8264014db
MD5 9fe500bc877def52d228e95d76a1f5a5
BLAKE2b-256 f54051b9b4d4e2535873e43221bcab3b23f4f6438eb7d046d66d1ad6de73286d

See more details on using hashes here.

File details

Details for the file open_spiel-1.0.2-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: open_spiel-1.0.2-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 3.4 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.7

File hashes

Hashes for open_spiel-1.0.2-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d477e408806cf849e9fcb5643f58ea8f2c0cbac879515791cffaa32b8b233bf2
MD5 ffc0495f9f05b9ff89b294e4133e3957
BLAKE2b-256 24a442438dbb99c9feca84a23682318214b47d7d6d58a7cefe9212f8ab2e112e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.0.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d5db4a5a36872846005fa0a8b0921afb72e5ea6b9702059215a97050a1113dc6
MD5 29dcd05ddb657980532be8d0781d8f91
BLAKE2b-256 898ce898e53b64984e055d76da8630ca53fb9bd0d11711302155b7f9a816f288

See more details on using hashes here.

File details

Details for the file open_spiel-1.0.2-cp36-cp36m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: open_spiel-1.0.2-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 3.4 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.7

File hashes

Hashes for open_spiel-1.0.2-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 86de519a87516383d1520bef02d7fe08040853771794536c5a1aedad997a14a9
MD5 02bffc876a47537ae40c6dd32dca0fb0
BLAKE2b-256 56bcbdf6e27cc0cf31bf5a1adb38433d71f25d37653c93bc4a05add1f365e743

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