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-2.0.tar.gz (5.6 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-2.0-cp314-cp314-win_amd64.whl (10.5 MB view details)

Uploaded CPython 3.14Windows x86-64

open_spiel-2.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (16.0 MB view details)

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

open_spiel-2.0-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (15.3 MB view details)

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

open_spiel-2.0-cp314-cp314-macosx_11_0_arm64.whl (12.4 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

open_spiel-2.0-cp313-cp313-win_amd64.whl (10.4 MB view details)

Uploaded CPython 3.13Windows x86-64

open_spiel-2.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (16.0 MB view details)

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

open_spiel-2.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (15.3 MB view details)

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

open_spiel-2.0-cp313-cp313-macosx_11_0_arm64.whl (12.9 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

open_spiel-2.0-cp312-cp312-win_amd64.whl (10.4 MB view details)

Uploaded CPython 3.12Windows x86-64

open_spiel-2.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (16.0 MB view details)

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

open_spiel-2.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (15.3 MB view details)

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

open_spiel-2.0-cp312-cp312-macosx_11_0_arm64.whl (12.9 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

open_spiel-2.0-cp311-cp311-win_amd64.whl (10.4 MB view details)

Uploaded CPython 3.11Windows x86-64

open_spiel-2.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (16.0 MB view details)

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

open_spiel-2.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (15.2 MB view details)

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

open_spiel-2.0-cp311-cp311-macosx_11_0_arm64.whl (12.9 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for open_spiel-2.0.tar.gz
Algorithm Hash digest
SHA256 dc178e189774799b0abb1b678f5de887a8de7e602fdc8ec8a80679e8bd701e45
MD5 7bd1ab5a964cff641a7fd0c2dc444ad7
BLAKE2b-256 d87660a4c4d423dca4a33a0faf48c5d15178b8f0d4ad79d4186ce47343b73cb7

See more details on using hashes here.

File details

Details for the file open_spiel-2.0-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: open_spiel-2.0-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 10.5 MB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.14

File hashes

Hashes for open_spiel-2.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 2b334743133b34748c5b83980aa8f3c3cc963a65986d67a3d1d75659e7bcff5d
MD5 ffd6a041776a81998f9738eaa4ac4d36
BLAKE2b-256 b13468a291f6b247b32d59f442dac1a4d2743ec398ee9f6a636f6b4bf4859ead

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-2.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b5b576a4e74e31d4783bbe585dba994ce4e6c1e5a38302a9800d98825fc85eda
MD5 cc4204ad0a290d212490bbf4fca785c6
BLAKE2b-256 b0ed48bd3dc62be3528cb97e348d11d6d3fb94e2fdf732a5b8684e0783005926

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-2.0-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6413a90ef081636a938eb72549519615d2a1c856fdea2b61b182d8668a96df22
MD5 fcebe9e1a34ddc24120c9f5a014bbfe8
BLAKE2b-256 8d30f74e776a8444ee151efd1b5f1550db7dbc1a4a1e42aaf879a203560376ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-2.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ac33ea71ab4ff13ea9e7601fb85d37c8e86fc40494b43413995743ec03e55e0c
MD5 a60746ca7b599c965dd574d261921f7b
BLAKE2b-256 0c1a9efa273495dfa8021055ad87c950f466a981aae29f1e63106dbc31c9fd14

See more details on using hashes here.

File details

Details for the file open_spiel-2.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: open_spiel-2.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 10.4 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.14

File hashes

Hashes for open_spiel-2.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 adcd3fcfb2bcf6dcde8930a7cd5ae40b1d28c9c0a7320aef82ac278fd2df9cab
MD5 28d8f7d050791b71e9ddc62c22c38dc5
BLAKE2b-256 27ac167471dcdc8703b4accb88ebfa8927310a8a0a0d8450342e61082384434f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-2.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e4cfa46a6c733bca9f8e13b5723171a05249f2fafdaca4156bb0084718e944a1
MD5 446d7844294418934f33f2d24cd232f4
BLAKE2b-256 0189ef3df3dbc48354a88d53657b2813aad949a785c9b0337e42e3540c18bfa3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-2.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e86cf99432b6d3459a4e8cb53bcce85a57ce2fad8c1e86ee9075851f88890c37
MD5 ccec80e766e43f27936a57fa7623aa36
BLAKE2b-256 c54b16c36126ae22fbd59ba4b46ace838106fb9a33057e668e87cc60e60ae564

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-2.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6c5e52372da67940c0ec39ed4f469338bcdd384d9db16d4f63f44955c86671ec
MD5 69434a59b3bc2e72878545ef45dff260
BLAKE2b-256 f1bf5d9dac71e627a732b48dd323f51ec195f44961d8f0de3af54eb278787f3e

See more details on using hashes here.

File details

Details for the file open_spiel-2.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: open_spiel-2.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 10.4 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.14

File hashes

Hashes for open_spiel-2.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e353a81c619fdf6c51e63888b33d36354de7cce231d04005ede67f46888dc8a9
MD5 44451085e7a3fbb0dc9aba2bd06f8d0d
BLAKE2b-256 61f4f994dcfc629f6868243984b11dd13bfc12dc4163ac233101d622efef8bfb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-2.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5acd1bee6e7544b4d6d90ac13c46cd21e87c59f56372d2b63b4b6f1a6d880a28
MD5 ed0db61722b8cb47f70ff031123922c2
BLAKE2b-256 97b02ae66df0194916eafa1884cb2f1b51e508f6604aa758e01213f17b5e086f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-2.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 ac0885b2ce1cac21ea29abe596f3ac808952c8d52fedcbd8cfcaa34a0e99f9da
MD5 de96311f0c81ac7cf240dc871c992578
BLAKE2b-256 b71627e1916c912f009f31d24cfdb92187fe879dd9f507ffb90fa258992c1e15

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-2.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 37787a232c0a50c4823e8ad8e1df0fde7cafd7fba70545a304ee8c5f208e39d5
MD5 6bbd4fabdf5b6e8bb51ca1cde66a5326
BLAKE2b-256 417e0016ec2ea0c2a98c3bf034fe39576da50be7035f10fe83645f68ea51cc83

See more details on using hashes here.

File details

Details for the file open_spiel-2.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: open_spiel-2.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 10.4 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.14

File hashes

Hashes for open_spiel-2.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a25c92feb0ddcb333ee6b3a3e0d73247ac7b70934cab70c64f03fbb602666db9
MD5 6d065acba0dcaa713490134bf535d108
BLAKE2b-256 442e9ae4de34c641762a1ff4aff608cbdce12112e0dab79d4135e8985f79c8fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-2.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0fd7e64dc0cb883451c8f4238375840a9b7355cd3c68bf283a3038a66c3106fd
MD5 246dc749595f96cd781ad63d665c0f43
BLAKE2b-256 f45ab205c3e76797efedd0ab8226baca425000605fd731073ed6a08730003e9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-2.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f8afb3da6eed344629c633886a0150e0c81ac40151ef0a0424fcf5f54a1a6fc0
MD5 a56c6c56c8c96c78401732a8a65c0de3
BLAKE2b-256 f758c98667ae93f43e6897e322c895bef15e62827a9d8127fb51d7c3f9dd57c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-2.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 55b528778729585bed9516142e5b3ff04c679de024e74133e233190429b4019d
MD5 fedea290acccbffa1e403cf716e7a38e
BLAKE2b-256 7cf2ab9d417d887798b6f33b5cb3896398b863886e680f52b400fd1e1fb300f8

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