A playable mountain: Piṅgala’s metre-counting from the Chandaḥśāstra.
Play: amitendrasingh.com/games/matrameru · GitHub Pages
Short (laghu) is one beat. Long (guru) is two. Fill a track of length n with unique patterns. Each pattern becomes a stone on the matching pile. The number of patterns is Fibonacci. Stacked by how many longs they contain, the piles are Pascal’s triangle — the meru-prastāra.
The board generates the set. It never applies a formula.
- J / 1 — short (one beat)
- K / 2 — long (two beats)
- Backspace — undo
- ? — Piṅgala’s drawer (the Vedic connection, and where the same counts live today)
Lengths 3–9. A finished slope always splits in two, because every line ends short or long. That split is why the counts are Fibonacci.
Open index.html in a browser. No build step, no server required.
Piṅgala enumerated metres with two bricks more than a thousand years before Fibonacci wrote the sequence down. This is that enumeration, as a game.
MIT. See LICENSE.