What it does
Answers apply on later ticks, so the game never pauses its rendering to wait.
Playable demos & bots
A wraparound snake keeps moving on a fixed clock while Jev periodically chooses to continue or turn.
Screenshot unavailable. Open the experiment ↗
Answers apply on later ticks, so the game never pauses its rendering to wait.
You can build a fast game that never freezes. The software asks an outside AI service for a move in the background. Your developer can borrow this approach for another project. This lets an app stay active while waiting for an answer.
To run the original game, you need an access key for Vercel AI Gateway. This key connects the software to the AI. The AI only picks simple moves like turning left or right. Your local code handles the game board and the crashes.