Gemma 4 Challenge: Build With Gemma 4 Submission This is a submission for the Gemma 4 Challenge: Build with Gemma 4 What I Built I built a Snake game where the snake is driven entirely by Gemma 4. The model reads the board, reasons about the move, and the snake follows. The backend is a Quarkus application written in Java 26 with virtual threads. A scheduler fires every 200 ms, advances the snake one cell, checks for collisions and food, and broadcasts the updated board as JSON to every connected browser over WebSocket. The UI is a plain HTML5 Canvas that renders the live game in real time. What makes the architecture interesting is how the AI fits in. Every tick, if Gemma 4 is not already busy, the engine snapshots the board state, builds a structured prompt and fires it off asynchronously via langChain4j. The game never waits for a response. If the model is still thinking when the next tick fires, the snake keeps going straight.…