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-1.6.12.tar.gz (5.5 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-1.6.12-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.5 MB view details)

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

open_spiel-1.6.12-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.8 MB view details)

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

open_spiel-1.6.12-cp314-cp314-macosx_11_0_arm64.whl (6.0 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

open_spiel-1.6.12-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.5 MB view details)

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

open_spiel-1.6.12-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.8 MB view details)

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

open_spiel-1.6.12-cp313-cp313-macosx_11_0_arm64.whl (6.6 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

open_spiel-1.6.12-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.5 MB view details)

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

open_spiel-1.6.12-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.8 MB view details)

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

open_spiel-1.6.12-cp312-cp312-macosx_11_0_arm64.whl (6.6 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

open_spiel-1.6.12-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.5 MB view details)

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

open_spiel-1.6.12-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.9 MB view details)

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

open_spiel-1.6.12-cp311-cp311-macosx_11_0_arm64.whl (6.6 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for open_spiel-1.6.12.tar.gz
Algorithm Hash digest
SHA256 e8f6437f65f6bf7455e78d447dadb1604d125ead6f541bd7f0572801ad302e3e
MD5 4cebdb5444d14d5661f5f042d37d79d4
BLAKE2b-256 6792c890eddf631e764bb3a684aee21513e6b9e18733f6c0ccca48803cc01ffa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.12-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 313734ed11d84d59dbe4436aee71d5d2a9edb8482d68f01f5de180285d389051
MD5 81f3075720b1c86091def92ca6279e09
BLAKE2b-256 71ac4f01287b5e1b546cf1daff5ccc32bf02676262a0942b62d377dba9524b0c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.12-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c07e14f1502eab2fae4217336fc5f3caed58f58fe81128559550b239f4db0101
MD5 c29c1c0d9388aa88c9ce951117eada70
BLAKE2b-256 405141e1cc965e15c44d2bf8c0145bb6e112032bdc71e3ca4387dfc83ea0652b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.12-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 415e44937b57b335a72516f24928c8beb7112cd50ca60d240b6ffd74d115b761
MD5 c051f988cba3bde0a6392ec74b50a204
BLAKE2b-256 c2107ded12a4feb1f84a50d71e124fa99fa0fb653d2a8ee7d26effd7eb1741a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.12-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b85bbff50f8748a6889de78b592cc076ce1a4660ae8dc79801a8fa08c808a7f9
MD5 bc0b6d06f790f69502fe1a5196569f0d
BLAKE2b-256 8f060b51a4b1430bd6e057a199973feec6436bd6ecdb3288a7519f36b16b143b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.12-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 9ae7de84af40f9bcb18a704439842fb5fc5cd02a77f5002e483d67a3218dfde2
MD5 b4b2c707b46bab7d1033efad355fe418
BLAKE2b-256 3f0a9bb9ab5d0c2b45fff481fa464e0c1d09ab53c986af0bc3e7eeca78c0f041

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.12-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5a2ea5a55d8dd455bdfb3ee30f174834450f17d6d9a0ae53ca06fe1ba0c9d905
MD5 db36621facadf0415e3def85ad149e29
BLAKE2b-256 3820f69b3694fe80830579dc2368ed397cac0d0acb47fd0cfd1db4199ea2c77f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.12-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2263597586f865fcc7d01cff380ed2be262db217c0135ee39dc75678540ec05f
MD5 ea28629e9848598e75f60e6851a739f3
BLAKE2b-256 55238daecd6ad9160bee88c21bd5c3cdf5c53d62278d343cbaab19b759d77961

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.12-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0253848727083a8828b353d9a26ee176a515666011b3937fcb3fdb3b67d79199
MD5 10e3c4abe9d22cc5c77be0d6ce20ba98
BLAKE2b-256 41592d96bf8427ad5ff09fd6877891c02d6bf920d552f87509b617f2c97b4888

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.12-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1e53fd8686a7f364e774805913e946d880bd7e8cf3a5dcea7793fcdc45acd4b6
MD5 ee74cebff1ba3ec81c9e3d2db47ddf14
BLAKE2b-256 65e46e6723abe8dc66dbbe035c8cce9cb2f232c316313f8f5cebda8d993d50c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.12-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 68b5928c6621b40ca19d8252efdc900ede5d1372f4dc20cbf1bbe6944f13d303
MD5 ad86572a0f1feb38a1f50fc0720f2eb0
BLAKE2b-256 9b208affadeacd41ce88ecf507c7317174691fd4745d7988a8c8acdd13900ad3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.12-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 54b165abb4c681ad87b684add0d4ce105fe1785ca62efaf505e775470fcb6453
MD5 f8f76d92edb919763bdaa2e5a78e3048
BLAKE2b-256 8ef2a438a5806a306f02db2f63c9fafa733f82f0336d520831e7badfa748937a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.12-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 77b15f676d63a962440a270ebb95c757dc5f24dd8e058ad100f7f6a076ba3e4f
MD5 b5131b198fb5eb74185b565a557981bc
BLAKE2b-256 4b7b95bab1da60e2a7a2ce3632d5d0f2c96e9e6d8c5958621f9315faa2e742c1

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