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

DevFeed: [Reinforcement Learning for the Game of Balatro: A Fast Simulator and Two-Policy Training Approach](<https://devfeed.tech/articles/reinforcement-learning-for-the-game-of-balatro-a-fast-simulator-and-two-policy-training-approach-108147.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.39049>)

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

Published: 2026-10-30T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Reinforcement learning](<https://devfeed.tech/topics/reinforcement-learning.md>), [rust-ai](<https://devfeed.tech/topics/rust-ai.md>)

Tags: [3](<https://devfeed.tech/tags/3.md>), [abstract](<https://devfeed.tech/tags/abstract.md>), [agent](<https://devfeed.tech/tags/agent.md>), [approach](<https://devfeed.tech/tags/approach.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [arxiv](<https://devfeed.tech/tags/arxiv.md>), [automatically](<https://devfeed.tech/tags/automatically.md>), [but](<https://devfeed.tech/tags/but.md>), [card](<https://devfeed.tech/tags/card.md>), [client](<https://devfeed.tech/tags/client.md>), [cross](<https://devfeed.tech/tags/cross.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [failure](<https://devfeed.tech/tags/failure.md>), [fast](<https://devfeed.tech/tags/fast.md>), [first](<https://devfeed.tech/tags/first.md>), [game](<https://devfeed.tech/tags/game.md>), [learning](<https://devfeed.tech/tags/learning.md>), [policy](<https://devfeed.tech/tags/policy.md>), [reinforcement-learning](<https://devfeed.tech/tags/reinforcement-learning.md>), [simulator](<https://devfeed.tech/tags/simulator.md>), [training](<https://devfeed.tech/tags/training.md>)

## AI overview

The paper presents a Balatro reinforcement-learning pipeline built around a high-throughput Rust simulator checked against the live game through BalatroBot, legal-move masking, and two PPO policies: one handles blind play and the other shop decisions. The policies share the full state but act in separate phases, with reward routing and explicit cross-agent credit to address long-horizon learning. In the main joint run, first-blind clears exceeded 99%, while mean maximum ante plateaued at 3 of 8. Single-agent baselines with the same rewards did not reliably clear the first blind, oscillating between greedy and hoarding behavior. The authors identify long-term strategic planning, rather than tactical blind play, as the remaining gap.

## Source excerpt

arXiv:2610.39049v1 Announce Type: cross 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.