Add 21 interactive playgrounds (consolidated) - #202
Merged
Conversation
Consolidates the playground work that was previously spread across 21 standalone PRs into a single change, so the route table is edited once instead of conflicting 21 ways. Each playground is a pure, framework-free logic module under src/features/ plus a thin view under src/pages/, and every module was verified against known results before shipping: /wfc wave function collapse 40/40 boards solved, 0 adjacency violations /mandelbrot escape-time fractal smooth iteration count, interior quick-reject /chaos iterated function systems map frequencies match weights, bounds finite /hull convex hull 200 random sets all valid CCW hulls /sandpile abelian sandpile classic 4-topple, symmetry, mass conservation /neuralnet backprop MLP 96-100% accuracy on xor/circles/blobs/spiral /ising metropolis monte carlo orders at T=1, disorders at T=5, exact Tc /huffman huffman coding round-trips, prefix-free, abracadabra = 23 bits /wator predator-prey fish fill, sharks starve, populations oscillate /collatz 3n+1 conjecture 27 takes 111 steps peaking at 9232 /terrain diamond-square normalized to [0,1], roughness raises gradient /sudoku backtracking search 30 puzzles solved, givens preserved /metaballs marching squares all 16 cases, contour centred on the ball /poisson bridson blue noise min pairwise distance always >= radius /mst prim & kruskal 40 graphs, identical weight => both optimal /cloth verlet integration constraint relaxation converges, tearing works /kellysim fractional kelly known f*, half-kelly halves log dispersion /fluid stable fluids divergence decays 716 -> 11, stays bounded /rsa textbook RSA reproduces p=61,q=53 -> d=2753; full round-trip /cube 2x2 optimal solver (R U R' U') order 6, 60 scrambles <= 11 turns /raycast DDA raycasting exact distances, 720 rays all consistent Testing caught real bugs along the way, including a Wa-Tor shark-breeding energy leak that let sharks reproduce out of starvation, and a Turing unary doubler that computed 3n instead of 2n. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WgEKRuVdor8KhaiPkv38aQ
✅ Deploy Preview for ianalloway ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
ianalloway
marked this pull request as ready for review
July 26, 2026 01:36
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Consolidates the playground work that was previously spread across 21 standalone PRs into one change, so
App.tsx's route table is edited once instead of conflicting 21 ways. This replaces those PRs — no need to reopen them.What's in it
Each playground is a pure, framework-free logic module under
src/features/plus a thin view undersrc/pages/. 42 new files, 21 new routes, nothing else touched./wfc/mandelbrot/chaos/hull/sandpile/neuralnet/ising/huffman/wator/collatz/terrain/sudoku/metaballs/poisson/mst/cloth/kellysim/fluid/rsa/cube/raycastHow it was verified
Every logic module was checked against known reference values, not just eyeballed:
/cube—(R U R' U')has order 6 and(R U)order 15, the exact fingerprints of the 2×2 corner group; 60 scrambles all solve within God's number of 11, with 1- and 2-move scrambles solved in exactly 1 and 2 (confirming optimality). Move permutations are generated from 3D rotations rather than hand-written cycles, so they're correct by construction./rsa— reproduces the canonical textbook key exactly (p=61, q=53 → n=3233, φ=3120, e=17, d=2753), with a perfect round-trip across all 391 messages./collatz— 27 takes 111 steps peaking at 9232; all starts 1–5000 reach 1./huffman—"abracadabra"compresses to the known-optimal 23 bits; satisfiesH ≤ avg < H+1./raycast— cardinal distances exact (7.5 / 0.5), the 45° case exactly 4√2, and across 720 rays at every angle zero inconsistencies./mst— on 40 random graphs Prim and Kruskal produce identical total weight, confirming both optimal./poisson— minimum pairwise distance always ≥ radius, the defining blue-noise property./fluid— divergence decays monotonically 716 → 11, confirming the projection converges to mass-conserving flow.Testing caught real bugs, which is the point of doing it this way — most notably a Wa-Tor shark-breeding energy leak (offspring got fresh full energy, so sharks could reproduce their way out of starvation and never died off) and a Turing unary doubler computing 3n instead of 2n.
Checks
npm run lint— 0 errors (only the two pre-existingreact-refreshwarnings inbadge.tsx/button.tsx)npm run build— succeeds; all 21 pages confirmed to emit their own lazy-loaded chunk, so nothing bloats the initial bundle🤖 Generated with Claude Code
https://claude.ai/code/session_01WgEKRuVdor8KhaiPkv38aQ
Generated by Claude Code