Manuscript Offprint

arXiv:2610.39049

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

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

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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.

1 Introduction

Balatro is a single-player roguelike deckbuilder released in 2024 by LocalThunk and Playstack[1]. A run consists of eight antes; each ante contains three blinds (a small blind, a big blind, and a boss blind) that the player must beat in sequence. To beat a blind, the player is dealt cards from their deck and must play poker hands until the total chip score meets or exceeds the blind's target. Between blinds, the player visits a shop where they can buy cards, jokers that modify scoring, consumables such as tarot and planet cards, packs of cards, and vouchers that apply global effects. Money earned in the current round also generates interest, which creates a tradeoff between spending now and saving for later.

This simple outer loop hides a great deal of complexity and depth. On a tactical level, each hand of up to eight cards can be played or discarded several different ways, and the best choice depends on the exact poker hand type, the current set of jokers, whether individual cards have been enhanced or given special editions, which cards are debuffed by the boss, and how many hands and discards remain. On a strategic level, the player is building a deck and a joker composition for the rest of the run. An early purchase that looks locally suboptimal can unlock a powerful synergy eight blinds later, and conversely, a locally tempting buy can starve the economy and cost the run at a future boss. In

*Equal contribution.

Preprint.

addition, draws, shops, pack contents, and tags are random, and many boss blinds fundamentally change the scoring rules for that one blind only.

From a reinforcement learning perspective, Balatro is attractive because it brings together three well-known sources of difficulty. The action space is very large and highly state-dependent: in a given state, many actions are illegal, and the set of legal actions can change dramatically from one step to the next. The horizon is long, with a winning run taking a few hundred decisions, and rewards are naturally sparse, where you either beat a blind or you don't. Transitions are stochastic, since the same state and action can lead to very different outcomes because of draws and shop generation. These three properties have derailed many otherwise solid RL methods in Balatro-like settings, and published results on Balatro itself remain scarce.

References (11)