After selling 1 million copies, Balatro creator admits it's "held together with hopes and dreams" as game devs rally around the roguelike's beautifully nightmarish code
"If it's dumb and it works then it's not dumb!"
Weekly digests, tales from the communities you love, and more
You are now subscribed
Your newsletter sign-up was successful
Want to add more newsletters?
Every Friday
GamesRadar+
Your weekly update on everything you could ever want to know about the games you already love, games we know you're going to love in the near future, and tales from the communities that surround them.
Every Thursday
GTA 6 O'clock
Our special GTA 6 newsletter, with breaking news, insider info, and rumor analysis from the award-winning GTA 6 O'clock experts.
Every Friday
Knowledge
From the creators of Edge: A weekly videogame industry newsletter with analysis from expert writers, guidance from professionals, and insight into what's on the horizon.
Every Thursday
The Setup
Hardware nerds unite, sign up to our free tech newsletter for a weekly digest of the hottest new tech, the latest gadgets on the test bench, and much more.
Every Wednesday
Switch 2 Spotlight
Sign up to our new Switch 2 newsletter, where we bring you the latest talking points on Nintendo's new console each week, bring you up to date on the news, and recommend what games to play.
Every Saturday
The Watchlist
Subscribe for a weekly digest of the movie and TV news that matters, direct to your inbox. From first-look trailers, interviews, reviews and explainers, we've got you covered.
Once a month
SFX
Get sneak previews, exclusive competitions and details of special events each month!
With 1 million copies sold, Balatro has cemented itself as the roguelike hit of 2024 - despite the fact that its underlying code is apparently "held together with hopes and dreams." After some examples of the game's beautifully nightmarish code hit the internet, game devs are rallying to say, basically, if it ain't broke don't fix it.
The original tweet that spawned all this discourse has since been deleted - probably smart - but the gist is that Balatro has bespoke code for many objects where modern programming standards would typically suggest that you build some universal ways of handling those objects. That is a gross oversimplification, and this breakdown from game developer Sean Barrett will give you a much smarter overview of what's happening here, but that's the gist.
Balatro developer LocalThunk has been quick to cop to the idea that the game's code is messy, noting that it's "held together with hopes and dreams" and joking that "they won't teach you that in a fancy Software Engineering course." But game developers are rallying around the idea that it's never really been about creating clean code - if it works, then that's enough.
Remember the goal is to ship games, not make the neatest and most elegant code routines. https://t.co/mwKeWi3We9April 23, 2024
I'm working on a personal project in which I have forbidden myself to work beyond the negative XYZ axis so I don't have to deal with obnoxious math problems. Only positive values.If it works, is easy to debug and performance is not an issue, then it's the right decission. 👍 https://t.co/zMBY4Ktvl4April 23, 2024
If Balatro was at the top of Steam, I can only imagine it made at least a few million dollars. I don't know of any clean code enthusiasts who can boast such earnings from their own products. They usually earn from consulting and selling books on clean code.Telling, no? https://t.co/8nRTOOcMMJApril 23, 2024
Ultimately, that's what LocalThunk figures, too. "It's not perfect but I know where every single thing is and I'm the only one that needs to maintain it, so it makes sense to me. If it's dumb and it works then it's not dumb!"
We spoke with LocalThunk about Balatro's ingenious twists on poker earlier this year.
Weekly digests, tales from the communities you love, and more

Dustin Bailey joined the GamesRadar team as a Staff Writer in May 2022, and is currently based in Missouri. He's been covering games (with occasional dalliances in the worlds of anime and pro wrestling) since 2015, first as a freelancer, then as a news writer at PCGamesN for nearly five years. His love for games was sparked somewhere between Metal Gear Solid 2 and Knights of the Old Republic, and these days you can usually find him splitting his entertainment time between retro gaming, the latest big action-adventure title, or a long haul in American Truck Simulator.


