Jump and duck to survive an endless desert
↑ / Space jump | ↓ duck | R restart
The AI uses forward simulation to decide when to jump or duck. Each frame, it clones the current game state and simulates the next 80 frames for three scenarios: keep running, jump now, or duck now. If running straight will collide with an obstacle, it picks whichever alternative keeps the dinosaur alive.
Tap Viz to watch the AI think. A cloud of simulated paths appears ahead of the dinosaur — blue for jumping, orange for ducking, dark for running. The thick line is the chosen path; fainter lines are alternatives the AI evaluated. A badge above the dino shows the current decision.