Watch a neural net learn to play Snake
Get picks like this daily. Today's launch numbers, the top launches, AI and tech news, and a daily opportunity pick, straight to your inbox.
Want to reach these readers? Sponsor an issue.
In browser PPO training demo, made possible by tinygrad: TinyJit -> WebGPU kernels.Requires WebGPU.
HN · launched May 14, 2026 · 205 upvotes (top 4%) · 0 views
Niche: data and scientific visualization tools · 148 launches, 3 in the last 7 days ▼ -63% · Explore this niche →
Category and tags
- Horizontal
- Content generation
- B2C
- AI-native
- Hobby / open-source project
Visit website ↗ Source listing ↗
More like this: all 148 launches in data and scientific visualization tools →
Could you build this?
Partial While the Snake game UI is simple, compiling reinforcement learning algorithms (PPO) via TinyJit directly into custom WebGPU compute shaders requires deep GPU programming and ML framework knowledge.
What it would actually take: The frontend is a standard canvas rendering the Snake environment, but the core engine relies on tinygrad and custom WebGPU compute kernels to execute batched tensor operations and PPO updates directly on client hardware. A builder needs specialized knowledge in WebGPU shading language (WGSL), computational graph compilation (similar to tinygrad's TinyJit), and deep reinforcement learning implementation nuances to ensure numerical stability and parallelized rollout generation in the browser.
Discussion
20 comments analyzed.
Competitors mentioned: LLM playing snake (alternative implementation)
Concerns raised: Bitdefender flags website as suspicious/malicious, WebGPU not supported on Mac/Safari, AI gets stuck in local minima repeating same board states
Feature requests: Open-source the repository, Give neural network visual sense to locate food/apple, Penalize repeating board states to force learning progression
Competitors
Other products that read as similar to this one : 62 launches clear the similarity bar, closest 8 shown.
Attention rank: #3 of 63 (itself plus its competitors, highest first, normalized so YC and Product Hunt are compared fairly).
Launched 174 days after the earliest competitor.
- Snake-Game-Reinforcement-Project · github · 2026-09-22 · 23 upvotes · similarity 0.55
- snake-game · github · 2026-09-16 · 10 upvotes · similarity 0.47
- Snake Game · ph · 2026-09-21 · 1 upvotes · similarity 0.46
- Snake-Game · github · 2026-09-24 · 11 upvotes · similarity 0.45
- Serpents.win · ph · 2026-09-10 · 1 upvotes · similarity 0.44
- typesafe-snake · github · 2026-09-17 · 20 upvotes · similarity 0.41
- Snake Game: Multiplayer IO · ph · 2026-11-06 · 1 upvotes · similarity 0.40
- Snaketron · hn · 2026-08-30 · 5 upvotes · similarity 0.40
The niche, labels, vibe code rating and competitor comparison on this page are analysis by Nicheloom. If you use them, please credit nicheloom.com. How you may use our data.