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

Uploaded Source

Built Distributions

open_spiel-1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

open_spiel-1.2-cp310-cp310-macosx_10_9_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

open_spiel-1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

open_spiel-1.2-cp39-cp39-macosx_10_9_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

open_spiel-1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

open_spiel-1.2-cp38-cp38-macosx_10_9_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

open_spiel-1.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.8 MB view details)

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

open_spiel-1.2-cp37-cp37m-macosx_10_9_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: open_spiel-1.2.tar.gz
  • Upload date:
  • Size: 3.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for open_spiel-1.2.tar.gz
Algorithm Hash digest
SHA256 e2ed97c603c1bc1db4bed1986440ff4f78ea742953c36aa586cf53e85d06a734
MD5 0a991c0c797a1bd646ba5f8725b5dcc3
BLAKE2b-256 15fab850c0b6c67643e12839deaa65a9775fcdd88eab747e0311e1a13aee0a89

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6a5b8cfd5681f6d84c0327439de5d3393ce0d969a70c253e2e0e8a627e7e9fe0
MD5 659a818209af0403747c21f25283cb4d
BLAKE2b-256 7b4793a2e1467a340fb7ac2a0faa0911fd4cb0731cf29d9fb3a2d45076ebe154

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.2-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 208f2b4d18c381c413be36c21beec1277450a6982477b076679fa39fecd40ca9
MD5 9cba0257e2c201b567e58b17db91d919
BLAKE2b-256 ea043bc64ad10fba2f19fd729871a3b2c98183aa11dae1f1dee9a8f55358ac78

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6f6968c58ceb57a5c674d2478ac5f440669e9a7d56adb0bb25fcd8ec48734374
MD5 73436dd14606cb84c7cf5f75d8773daf
BLAKE2b-256 b55a8595acb6c8ed7c5b63f271b9052af96e5bd13e36db9b65b79f4c71cbce35

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.2-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 bc516189612b6d18a1ac3a36ed83e4f6fa677137f1c7443073e5ba3ccf95f293
MD5 95db6b4853e311f061ae27e0e9735183
BLAKE2b-256 a5110a099c7827d0227e380ce62d22ce340bb1c02b023d4affd5b3405e9577ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5327e92fdf2e29bef8744f0e540120ade368fa1bcb6c3259ae102ec7880be3a3
MD5 13a96b44f8adef5778283253be60aab7
BLAKE2b-256 a60ffde8d3009edfbdd1481dcc611197c761796551b4d3f4a0180a7752f9d740

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 360e677514e8ee653953590adadca86533b922d26692fb2b441c354d13fc5b83
MD5 1d9d5c44d2eb19dcf54c5facf41a4b6f
BLAKE2b-256 1be52ec3b04749e4ea3ba9a4885ea036a59731afaa3c63a74e5d14864d7baa53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2de4b0ca02d9c356ff3ffced4c37b052b686a2b5486321e72d51cf4d10054715
MD5 e7aba11bd849448ae0e207225ba0c395
BLAKE2b-256 f790eee6dbf4d1f76163486a6f1953b9027b721e4a00af11afc49b2b79cec7d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.2-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 137315d8896a70e1e7762f9dbc5febbdaccc910c7e2bd18672bfc77ca40e4aeb
MD5 77961a580aaf9bca73b39e42f0fbc0b6
BLAKE2b-256 3a3258b5ca349b7d5cee3a47b2d2c1a124efe111e0572e2449ebe5903733b4d7

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