Add percolation phase-transition demo at /percolation#165
Merged
Conversation
Sites open where a fixed per-site uniform noise field falls below p, so scrubbing the slider continuously grows/shrinks the same configuration instead of resampling. Flat-array BFS labels clusters and finds a spanning cluster touching both top and bottom rows; it renders bright green against dim open sites, snapping into existence near the site percolation threshold p_c = 0.5927 (distance to p_c shown live, header flags percolating state, fill %, and largest-cluster %). Auto-sweep ping-pongs p through the critical region to replay the transition. Co-Authored-By: Claude Fable 5 <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 19, 2026 04:45
|
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. |
# Conflicts: # src/App.tsx
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.
Summary
/percolation— an interactive site-percolation lattice where a phase transition is directly visiblesrc/features/percolation/perc.ts: fixed per-site noise field thresholded at p (so the slider grows/shrinks one configuration continuously), flat-array BFS cluster labeling, spanning-cluster detection, fill and largest-cluster statssrc/pages/Percolation.tsx: canvas lattice with the spanning cluster in bright green, p slider with live distance-to-p_c readout, auto-sweep through the critical region, new-field rerollsrc/App.tsx: lazy-loaded/percolationroute with SEO metadataHow it works
Test plan
/percolation— p=0.45, scattered dim clusters, "disconnected"Generated by Claude Code