How imadityagupta/liars_poker works
This is a two-player Liar’s Poker research and play environment. The principal workflow is to define a game, step it through legal actions, query policies, compute best responses, evaluate match outcomes, and optionally train or persist policies. The graph also preserves the documented tabular/dense FSP and neural CFR capabilities. Relationships are limited to README statements and SOURCE INDEX references; unsampled subsystems are shown only where documented.
Main entry points: env.py Game environment · base.py Policy API · serialization.py Policy serialization · br_exact_dense_to_dense.py Exact best responses
Components 22
Game runtime
- Game specification
liars_poker/core.py - Rules and claims
liars_poker/env.py - Game environment
liars_poker/env.py - Information state
liars_poker/infoset.py
Policies and storage
- Policy API
liars_poker/policies/base.py - Tabular policies
liars_poker/policies/tabular.py - Dense policies
liars_poker/policies/tabular_dense.py - Neural policies
liars_poker/policies/neural.py - Policy mixtures
liars_poker/policies/commit_once.py - Policy serialization
liars_poker/serialization.py
Best responses
- Exact best responses
liars_poker/algo/br_exact_dense_to_dense.py - Neural best responses
liars_poker/algo/br_neural.py - Monte Carlo response
liars_poker/algo/br_mc.py
Training and evaluation
- FSP training
liars_poker/training/fsp.py - Dense FSP
liars_poker/training/dense_fsp.py - Neural CFR
liars_poker/algo/deep_cfr.py - Deep CFR+
liars_poker/algo/deep_cfr_plus.py - Neural run orchestration
liars_poker/training/neural_runs.py - Match evaluation
liars_poker/eval/match.py
Interactive play
- Arena backend
visuals/arena_backend.py - Arena interface
visuals/arena.py
Other components
- Player or caller
Connections 44
- Player or caller → Game specification: configures
README.md - Game specification → Rules and claims: defines rules
README.md - Player or caller → Game environment: starts game
README.md - Game environment → Rules and claims: uses
liars_poker/env.py - Game environment → Game specification: uses
liars_poker/env.py - Game environment → Information state: builds state
liars_poker/env.py - Policy API → Information state: queries
liars_poker/policies/base.py - Tabular policies → Policy API: implements
liars_poker/policies/tabular.py - Dense policies → Policy API: implements
liars_poker/policies/tabular_dense.py - Neural policies → Policy API: implements
liars_poker/policies/neural.py - Policy mixtures → Policy API: implements
liars_poker/policies/commit_once.py - Game environment → Policy API: queries actions
README.md - Player or caller → Exact best responses: requests response
README.md - Exact best responses → Dense policies: reads opponent
liars_poker/algo/br_exact_dense_to_dense.py - Exact best responses → Game environment: uses game rules
liars_poker/algo/br_exact_dense_to_dense.py - Exact best responses → Information state: evaluates states
liars_poker/algo/br_exact_dense_to_dense.py - Neural best responses → Policy API: queries opponent
liars_poker/algo/br_neural.py - Neural best responses → Game environment: uses game
liars_poker/algo/br_neural.py - Player or caller → Monte Carlo response: requests response
README.md - Monte Carlo response → Policy API: samples opponent
README.md - Player or caller → FSP training: starts training
README.md - FSP training → Monte Carlo response: uses injected response
README.md - Player or caller → Dense FSP: starts training
README.md - Dense FSP → Match evaluation: evaluates results
README.md - Player or caller → Neural run orchestration: runs experiments
liars_poker/training/neural_runs.py - Neural run orchestration → Neural CFR: orchestrates
liars_poker/training/neural_runs.py - Neural run orchestration → Deep CFR+: orchestrates
liars_poker/training/neural_runs.py - Neural CFR → Game environment: traverses game
liars_poker/algo/deep_cfr.py - Deep CFR+ → Game environment: traverses game
liars_poker/algo/deep_cfr_plus.py - Neural CFR → Neural policies: uses networks
liars_poker/algo/deep_cfr.py - Deep CFR+ → Neural policies: uses networks
liars_poker/algo/deep_cfr_plus.py - Player or caller → Match evaluation: evaluates match
README.md - Match evaluation → Game environment: plays game
liars_poker/eval/match.py - Match evaluation → Policy API: queries policies
liars_poker/eval/match.py - Player or caller → Policy serialization: saves or loads
README.md - Policy serialization → Tabular policies: encodes policies
liars_poker/serialization.py - Policy serialization → Dense policies: encodes policies
liars_poker/serialization.py - Policy serialization → Neural policies: encodes policies
liars_poker/serialization.py - Policy serialization → Policy mixtures: encodes policies
liars_poker/serialization.py - Player or caller → Arena interface: plays interactively
visuals/arena.py - Arena interface → Arena backend: uses backend
visuals/arena.py - Arena backend → Game environment: steps game
visuals/arena_backend.py - Arena backend → Policy serialization: loads policies
visuals/arena_backend.py - Arena backend → Exact best responses: requests response
visuals/arena_backend.py