I am proud to introduce Balatrobot, a botting API for Balatro:
https://github.com/besteon/balatrobot
This mod requires Steamodded (tested on v0.9.3).
The bots are capable of running through an entire game of Balatro unassisted! Play hands, buy cards, and open boosters all using the API. The API will automatically query your bot for a choice of action when the time comes, no heavy lifting required.
To create a bot, just modify Bot.lua. There is an example on the github page to get you started.
I would love feedback - I am sure there are still bugs in the later stages of the run (I didn't have time to make a bot get that far yet
).
Currently requires some source code knowledge to get the relevant data for your botting decisions. A standardized gamestate data format coming soon. And if there is enough interest, perhaps a websocket/web API so that bots can be written in languages other than Lua.
Your bot can be as complex as you want it to be, but the API is designed to be easy to use! Here is an example of how a bot can choose between skipping or selecting a blind: