A portfolio-ready, single-file React demo of tabular Q‑Learning training a Snake agent in real time. Includes canvas rendering, Tailwind UI, Lucide icons, Q‑value overlays, epsilon/phase stats, and performance metrics.
npm install
npm run devThen open the printed local URL (usually http://localhost:5173).
npm run build
npm run preview- All RL state is in-memory only (no localStorage/sessionStorage).
- Game loop: 150 ms per step, auto-restart between episodes.
- Epsilon decays per episode; prevents immediate direction reversal; episode timeout to avoid loops.