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

Uploaded Source

Built Distributions

open_spiel-1.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

open_spiel-1.1.0-cp39-cp39-macosx_10_9_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

open_spiel-1.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

open_spiel-1.1.0-cp38-cp38-macosx_10_9_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

open_spiel-1.1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.4 MB view details)

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

open_spiel-1.1.0-cp37-cp37m-macosx_10_9_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

open_spiel-1.1.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.4 MB view details)

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

open_spiel-1.1.0-cp36-cp36m-macosx_10_9_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.6m macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: open_spiel-1.1.0.tar.gz
  • Upload date:
  • Size: 3.5 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.9

File hashes

Hashes for open_spiel-1.1.0.tar.gz
Algorithm Hash digest
SHA256 efa43babf2ccd81b14b79eb4076cbeec7eba52c3626570f76b76a1f71904c6f6
MD5 656c651403aa5800b29e35bbdde19acd
BLAKE2b-256 b231484585229018de1c89822099e338bf0e886cbbdcae9c4e1c76a41b82f68a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e4740723fe31d93589d33d5f6cc47d2398537484dd7879511d3abcfc3327a0ed
MD5 c84ce7cd396f07d703843becec1c17f7
BLAKE2b-256 80f92e060bb73828404d80557577b271c012d78d59de3aa1b7f7a2141b893089

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for open_spiel-1.1.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2fa7a84c87b601cf129518d378334ec0a0c232f1a5934c4a6bc259f7ee035165
MD5 a1ec0f318ee94da31cc6fd1ef4320970
BLAKE2b-256 dae0afed42f7e2b22aaf49ef832ab7d609c4c59100e772b690943a8d38dbe9ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3867276bb08562e14b4d6a21426cc892014dbf973b3b2f4f49153a250af00b70
MD5 07d82af8e2d81ddc88d0cbf2aa9c30ee
BLAKE2b-256 3b973d134b37d260634d743fd6e3e047ab1bdfa4b144620bf25b6f506a2bd1fc

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for open_spiel-1.1.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e874e6c0ce59ce919cc530f0fc20ed1b55bde76769e6c753316fa92d24d0832c
MD5 93e2fd863b8e88f9fdf3d685cab8459b
BLAKE2b-256 b3d526529225f9e84cdd3c3c870684b4ec6f2088d7039db659a42bde2f98d88d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 822815dfc62f396528cfca272781da89e1463bb39b716e68a61b3c92fcd645bb
MD5 c1f9a216b07b4bfefe7ea686024bdc8e
BLAKE2b-256 b05bdf6a8897fb69da8086e97337ff6d5d960e787f2752f24b9e235f0b6b97c3

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for open_spiel-1.1.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d48f37a1c3ce48e478d037ed9b26eccf1f397153ee05c384f1ae243677d8ff21
MD5 408fba600ff236246a0d044d208ac6db
BLAKE2b-256 362a4e6c6ccb24f35baa38a0f620d751dc0ef79ab8b8b3320e61efa5257148d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.1.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 48fd03a88a0ee22d666488360bbeae547b503e42322747ecab355d415fe7f193
MD5 9b49f55934464014c64647f7e6e70924
BLAKE2b-256 f782981933220f76fb7d6ab3fc291949c5d7c0d528d75392751697ed161abada

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for open_spiel-1.1.0-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 cbb18686b4e7572e3a9a6de270726c2c9faf5596e6acdfc235294de685be2d2c
MD5 80a6f4039206f52daf157f6e57dc2969
BLAKE2b-256 45e1e4c5962ce88c26a1201ff4176506f410851cbfe6268e58912c3304146ee7

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