Disclaimer: This part is human, not AI. The code and most everything else is AI.
What is Shattered Pixel Dungeon?:
Shattered is the most popular fork of the original Pixel Dungeon and is a great game to check out if you like roguelikes. You can download it on the Google Play or Apple store.
How does the bot play the game?
The bot plays using local JSON api that has two commands - GET /state reads what the human player would be able to observe and POST /action performs an action the same way a human would if they were playing the game. For more details, see the API docs
Why no sound?
The Shattered Pixel Dungeon background music is some of the best video game music imo, but unfortunately when recording games for playback my dinky little shared hosting VM was unable to deal with it.
Is AI playing the game?
Not really - AI is writing the code to play the game where it periodically make improvements. The bot code was also primed with some basic strategy elements (like surprise attacks) and other game specific prompts to help it with gameplay.
What model is used to generate the bot code?
Mostly GPT-6.1 Sol
Why are you only using a single character, Mage?
Mage seems like the best starting character since it can deal with both ranged and melee attacks immediately.
Why did you create this?
As a parent I basically have zero times to play video games, especially roguelikes like this one that are next to impossible to beat so I thought why not let an AI play for me?
Can the game be won using the bot?
Nope, right now it can't get further than level 11 (tho check to see if we have improved any since this was written)
Really, can you even play this game?
Yes, totally! I am a big fan of Shattered and I have beat the game myself with every class (before the duelist was introduced). Around that time my son was born so I really don't have any time any more. It also, in my opinion, got a lot more difficult recently but others may disagree.
How about running the bot with challenges enabled?
That's possible, however right now I think the game is a bit more interesting to run in vanilla mode and is hard enough for the bot to play.
How can I run this game myself?
You can run the fork and the bot yourself by cloning the repo for the fork and the repo for the bot.
How can I contact you for more questions or make a suggestion?
Send me an email