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.13.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-1.6.13-cp314-cp314-win_amd64.whl (10.2 MB view details)

Uploaded CPython 3.14Windows x86-64

open_spiel-1.6.13-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (15.5 MB view details)

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

open_spiel-1.6.13-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (14.7 MB view details)

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

open_spiel-1.6.13-cp314-cp314-macosx_11_0_arm64.whl (12.0 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

open_spiel-1.6.13-cp313-cp313-win_amd64.whl (10.1 MB view details)

Uploaded CPython 3.13Windows x86-64

open_spiel-1.6.13-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (15.5 MB view details)

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

open_spiel-1.6.13-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (14.7 MB view details)

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

open_spiel-1.6.13-cp313-cp313-macosx_11_0_arm64.whl (12.5 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

open_spiel-1.6.13-cp312-cp312-win_amd64.whl (10.1 MB view details)

Uploaded CPython 3.12Windows x86-64

open_spiel-1.6.13-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (15.5 MB view details)

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

open_spiel-1.6.13-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (14.7 MB view details)

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

open_spiel-1.6.13-cp312-cp312-macosx_11_0_arm64.whl (12.5 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

open_spiel-1.6.13-cp311-cp311-win_amd64.whl (10.1 MB view details)

Uploaded CPython 3.11Windows x86-64

open_spiel-1.6.13-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (15.4 MB view details)

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

open_spiel-1.6.13-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (14.7 MB view details)

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

open_spiel-1.6.13-cp311-cp311-macosx_11_0_arm64.whl (12.5 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: open_spiel-1.6.13.tar.gz
  • Upload date:
  • Size: 5.6 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.13.tar.gz
Algorithm Hash digest
SHA256 5d7ea172e2edae5bfa7b26d084278ba4b872ae17c11ba3de9c9346fb7dd30813
MD5 39833b53459a199f39a2629d04b507b8
BLAKE2b-256 387becac49a9cb4fa5965e5c7dd3f7b779c888daa8c16524f281ae29bcc86523

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.13-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 2fd621ae28b16abac112e6b2c2a60a598a176170d3fa56c1b36663ce30890f92
MD5 60d7b8ad7f0be9cb9f78858f54d3ef5a
BLAKE2b-256 14cb45a835bb8fd31639b267dc2d44044cb591594807426e24b1f14101007789

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.13-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ed074560e223042ea8bd684385b114622cf5c4c2d41c5429209e6d5b86cfd636
MD5 534d80ae24d6bd60f8c32fa3f56b7fc2
BLAKE2b-256 839f4abc57621babefe97d5f100187b8aa2cdc4dbc338bca60d462cb78597536

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.13-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2465a09816befe021265ed0f2c1433bc19842ecfc86cd1b51bb82fe992016b18
MD5 27941aece9c8ac00b56032326fc00dd9
BLAKE2b-256 2536baf7029c4622735c1f594535c4246b89935a62a420cdecfc0c71ce08acdb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.13-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3407cf03513bc93bb0e06a2cb1feac791bdbcd4cc73bf90e77cfe72c3d06b761
MD5 4464dc03ebf008b366f09259206ca1b9
BLAKE2b-256 aeed420edc8b12a633b8f4eec936c64499cc4aa438ea4a2e9985cf5bf4b9b0c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.13-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 0146f31fa2f93cd9f5f95a363eed6a4cdada5cb375662961f5ed728e0ae0327f
MD5 22653cacf26a2ea02574202f2f3e9277
BLAKE2b-256 806adbf90712f46efeec61bd4d021754f6a6508ddd60607d64e4903c383629e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.13-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 90ed74cb98c36ecae693e98e4aa974058eff69f07222d99f1b9b1578a75b3464
MD5 d4bb79cf2b7b13bb813da6c89dddcde5
BLAKE2b-256 872fe1ac1fb8d3cbdd28cd835e8b51cda49790e4487ded1c2224f7480cdc0377

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.13-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8b90a2c0126702c1e25f8a04d472ba94b1ab96993447ecaac2d9727d243f2f67
MD5 6f9c0e7b1efb131fe57278e3aa7dba66
BLAKE2b-256 a422ceb7605f04d2e8a16158af23c4e553eb00cf8fef11b171e3368e4ef1365b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.13-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 472ade7d8f0bdf4101ccaf3ad8ea16a680ebae21797fc781fd8e5c60ebf921db
MD5 a7afde2837107d75ef8cd109e13d6f6b
BLAKE2b-256 58a57a8b35679ea0250204b8daf5673ad42eb27c0e57af254408921f785741a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.13-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 fe02a144bcf76576c6faf97fbec53e09f14f09c3a9f5e05206c6eb6a5fe073c2
MD5 8bf4e36cc1d0e9474325542006825135
BLAKE2b-256 b3c9761fbcd98efca2c78eb6090d4a715dfbe6118027a6e6a055603c0848b01b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.13-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bf3f5c121f405cab65bf49268ba9d2eabb0e8111c2c0701c1a57f1aee2da1483
MD5 93efde08e4eccc9bd2864af8830a830a
BLAKE2b-256 47804c8e048cce92a6dc01e656decc0df137a2abd33eaf588e64021c4475839f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.13-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6086ab01df7e4bc0ff061c31bee1ddf6a614fe307e0d2532142ad61cd75784fc
MD5 d43ca21598e0e5a76326dbbae34da86f
BLAKE2b-256 4dd67fc87cefff2eababa90488bd30e02b5a5474990570454784ccfc6345a275

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.13-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9b83c8e2b4fa8a175b9d14ef007f0df82421eb84483040e9ee63a496da27a989
MD5 f754b330d9896d0c21aa0796f7891d2c
BLAKE2b-256 7adee5693e173ebbfe4c77700bccc57c9bdab291800123200d0227df50e7aee5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.13-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cfabe00ec4e09b4fc923cffcb4abbd22fc7248a7e3fb44e7b98212530053e6dd
MD5 ab0ed17223d9d78456a79db9bb2269e8
BLAKE2b-256 bc64dd1f0e23599f40631f1a2d9075e48fc176c53f7506d5b7c47bdc2bd022b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.13-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 dd97c77809700e8a2ff64279b1285e007e88dfd88a828cec2878e58931b61f92
MD5 80359fa1a7bda7c8b20776ade216de1d
BLAKE2b-256 0166892d7f2f0e64bba7ea81951e5c138d8c0f7777d50a227f49477b0d4f9d08

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.13-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 dc28159b98592508f8bb329abbceb6326e92645adf98352a279ce82a71bd5697
MD5 d1d9f84258a54c06af1585df90406c92
BLAKE2b-256 06049d8b743b2f8dfe4e8a4a06272f9988378b5553c93fe78a60729851167d14

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for open_spiel-1.6.13-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e06b40814d9676c706f97f82011acad83038348f73cf3a580a0f6a248c1091e8
MD5 8b489f5adf7906125e6791bc43ff187f
BLAKE2b-256 1262eeed8b582d57db9036b97a7c539a549ac27840e0a10c9dfced982efb16c8

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