OpenSpiel — Game Theory & RL Research Framework
DeepMind's Apache-2.0 framework for game theory and RL research: 70+ games (Chess, Go, Poker, Hex), CFR, MCTS, deep RL, and Nash equilibrium solvers.
OpenSpiel — Game Theory & RL Research Framework
OpenSpiel is Google DeepMind's comprehensive framework for research in reinforcement learning and game theory. It implements 70+ two-player and multi-player games — from board games (Chess, Go, Hex, Breakthrough) to card games (Poker, Bridge, Skat) to matrix games and auction mechanisms — along with a library of algorithms including CFR (Counterfactual Regret Minimization), MCTS, deep RL baselines, and Nash equilibrium solvers.
Key Features
- 70+ games: perfect/imperfect information, zero-sum and general-sum
- Algorithms: CFR, CFR+, MCCFR, MCTS, AlphaZero-style search, DQN, REINFORCE, Actor-Critic
- Nash equilibrium solvers and game theory utilities
- Python and C++ APIs — same game logic in both languages
- PyTorch and TensorFlow integration for deep RL agents
- Used in AlphaStar, AlphaZero, and Pluribus research
Quick Start
pip install open_spiel
import pyspiel
game = pyspiel.load_game("chess")
state = game.new_initial_state()
print(state) # Starting board
# Simulate a random game
import random
while not state.is_terminal():
actions = state.legal_actions()
action = random.choice(actions)
state.apply_action(action)
print("Returns:", state.returns()) # [1.0, -1.0] = white wins
npx ai-supply add open-spiel-game-theory-rl
Curated mirror of the open-source OpenSpiel (Apache-2.0). Get it from the source.
Compromise signals — malicious or tampered code (leaked secrets, backdoors, a dropped executable) — reduce the score, and known dependency CVEs carry a bounded penalty (they warrant review but never QUARANTINE — update the dependency to clear). Other dangerous-by-capability traits are risk surface, expected for some capabilities. Every finding is mapped to its OWASP control below.
Findings mapped to the OWASP Top 10 for LLM Applications (2025) and the OWASP Machine Learning Security Top 10. Expand any flagged control for the exact findings — compromise reduces the score; expected/risk-surface do not, except a known CVE, which carries a small bounded penalty (high/critical → Review).
The same gate an agent runs before installing (POST /api/v1/trust/open-spiel-game-theory-rl/check). Click a policy:
Consume OpenSpiel — Game Theory & RL Research Framework programmatically. Authenticate with an API key or session — see Authorize an agent.
# Agents: CHECK BEFORE YOU INSTALL (no auth) — score, grade, level, capability manifest
curl https://ai-supply.store/api/v1/trust/open-spiel-game-theory-rl
# Gate against your org policy (returns { pass, violations })
curl -X POST https://ai-supply.store/api/v1/trust/open-spiel-game-theory-rl/check \
-H "Content-Type: application/json" \
-d '{"minGrade":"B","denyPermissions":["shell"],"denyUnknownEgress":true}'
# CLI
npx ai-supply add open-spiel-game-theory-rl
# REST (install → download)
curl -X POST https://ai-supply.store/api/v1/listings/open-spiel-game-theory-rl/install \
-H "Authorization: Bearer $AIM_KEY"
# MCP tool
install_listing({ "slug": "open-spiel-game-theory-rl" })OpenAPI spec →Curated mirror — latest upstream source. See the repository for tagged releases.