cs.LGOct 28, 2026

Reinforcement Learning for the Game of Balatro: A Fast Simulator and Two-Policy Training Approach

Authors: Ajay Vikram Periasami, Anjaneya Gupta, Ethan Cheng, Ivan Rosales

Organizations: Department of Computer Science, Duke University, Durham, NC, USA

Abstract

Balatro, a 2024 roguelike deckbuilder, presents three difficulties that have historically derailed reinforcement learning methods: a 3,000-action state-dependent action space, horizons of several hundred decisions with sparse rewards, and pervasive stochasticity in both card draws and shop generation. Published RL results on the game remain scarce. We introduce an end-to-end pipeline comprising (i) a high-throughput Rust simulator that is automatically state-diffed against the live game client via BalatroBot, (ii) a condensed observation-action interface with dynamic per-step masking of legal moves, and (iii) a multi-agent PPO architecture that decomposes play into a tactical blind policy and a strategic shop policy that share the full game state but act in disjoint phases. Long-horizon credit assignment is partially addressed by per-agent reward routing with explicit cross-agent credit. On the main joint run, training metrics show a sharp phase transition in which the first-blind clear rate converges above 99% and mean episode return increases by roughly an order of magnitude, plateauing at a mean maximum ante of 3 out of 8; single-agent baselines under identical rewards oscillated between greedy and hoarding failure modes and did not stably clear the first blind. These results establish the two-policy decomposition as a strong reactive baseline for Balatro and localise the remaining gap to long-horizon strategic planning rather than tactical blind play.

Figures & tables

Appendix figures & tables2 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. CAST: Game Solvers as Turn-Level Teachers for LLM Agents

    Jul 28, 2026Yu Wang, Yi-Kai Zhang, Wentao Shi +8Credit Assignment in RLReinforcement Learning

  2. PokeRL: Reinforcement Learning for Pokemon Red

    Apr 12, 2026Dheeraj Mudireddy, Sai PatibandlaRL for Game AIReinforcement Learning

  3. Causal Reinforcement Learning for Complex Card Games: A Magic The Gathering Benchmark

    May 7, 2026Cristiano da Costa Cunha, Ajmal Mian, Tim French +1RL BenchmarksStructural Causal Models