r/retrogamedev • u/VagabondTruffle • 11d ago
New funky bot: Apotris "Stockfish" engine for Gameboy Advance
Hi I'm Heni and I sometimes help out on Apotris, one of the hip new games for block-stacking all the cool kids play for Gameboy Advance and up. I worked on the multiplayer and the toolchain as well as ports up to iOS and Playstation Vita back in 2021 and came back to make something new!
I modified the same classical AI engine technology as seen in Stockfish and other world-class chess engines with C++ and training scenarios to learn how to stack T-Spin doubles, run TKI and other four.lol openers, and potentially even DT cannon on the runtime cost of a toaster!
I made a video highlighting how my engine works and where it defeats classical well-search stacking routines. Given Apotris runs on Gameboy Advance, I only had a tiny amount of processing power and memory to work with, so the bot has to be even with something that ships on 2001 handheld hardware and works within barely a second. The original Apotris bot was in C++ and saw half a decade of work from akouzoukos and others and has been optimized to its peak so beating it was a real challenge...
See the code on Gitea under AGPL-3.0!
Try out a preview build in HTML5 running the same code as GBA!
Happy to blab about it if you have questions <3