A retro-style Snake game inspired by classic Windows 95 aesthetics, enhanced with a modern AI-powered What-If Mode that analyzes alternate player decisions after game over.
This project was built for Week 4: Retro Revival Challenge, focusing on recreating classic gameplay while introducing complex AI-driven logic.
Retro Revival – Rebuilding a classic game with old-school visuals and adding a modern AI twist.
- 🟩 Classic Snake gameplay
- 🎨 Windows 95 / Arcade-style retro UI
- 🧠 AI “What-If” Mode:
- Simulates alternate player decisions after death
- Shows how a different move could increase survival
- Displays a ghost snake path overlay
- 👻 Ghost visualization for AI replay
- ⚙️ Complex logic with state cloning and simulation
When the player loses:
- The game captures the last valid game state
- AI simulates alternate directions (left, right, forward)
- Each path is replayed in a sandbox simulation
- The best outcome is selected
- A ghost snake path is displayed along with an AI explanation:
“If you turned RIGHT, you would survive 6 more moves.”
This brings modern AI-driven analysis into a classic retro game.
- HTML
- CSS (Retro / Win95 UI styling)
- JavaScript
- Rule-based AI simulation logic
/retro-ai-snake ├── index.html ├── style.css ├── game.js ├── ai/ │ └── whatIf.js ├── assets/ ├── README.md └── .kiro/ ├── prompts.md ├── decisions.md └── iterations.md
(Add screenshots and a short gameplay recording here)
Kiro was used throughout development to:
- Generate and refine game logic
- Design AI simulation workflows
- Iterate faster on alternate-path prediction
- Improve visualization of AI outputs
The .kiro directory documents prompts, decisions, and iterations made with Kiro’s assistance.
- Clone the repository
- Open
index.htmlin a browser - Play the game and explore the AI What-If Mode after game over
This project demonstrates how modern AI concepts can enhance classic retro games while preserving their original charm. By combining old-school UI with intelligent post-game analysis, the Retro Revival theme is fully realized.


