Personal · 2026
Teeter
A 3D tumbling-tower party game that runs in the browser on phones and desktops. Walk around the table, slide out a block, stack it on top, and don't be the one who topples the tower. Play with 2–8 players, against AI or friends on one device.
The game
The classic wooden-tower game in 3D. Each turn you slide a block out of the tower and stack it on top. If any other block falls, you lose. It’s for 2 to 8 players sharing a phone or a laptop, and any of them can be an AI opponent (easy, normal or hard).
- Drag around the table to look, pinch to zoom, and use a slider to move up and down the tower.
- Press a block and drag it along its length to push or pull it. It glows from green to red as you push harder.
- Once it’s out, tap a glowing slot on top to place it.
Real physics, not animations
Everything you see is simulated with Rapier, a rigid-body physics engine compiled to WebAssembly. Nothing is animated by hand.
- Blocks are real size (7.5 × 2.5 × 1.5 cm), with real gravity and wood-on-wood friction.
- As in a real set, some blocks are a fraction of a millimetre thinner. They carry no weight and slide out easily, while the rest are pinned by the tower above them.
- Your finger is a force-limited spring: a tight block drags the tower with it, and shoving too hard knocks it over.
- Getting a 54-block stack to stand still took headless simulation sweeps of the solver settings (time step, contact stiffness, damping), run in Node with the same engine code.
AI that feels its way
AI players use the same force-limited finger as you, so they can’t cheat. The harder ones test candidate blocks with a gentle push first, commit only to blocks that slide, and back off when they see the rest of the tower start to move.
Sound
Every clack is synthesized with the Web Audio API, from how fast the blocks were moving when they hit, so there are no audio files. Sounds are panned to where they happen on screen, and a collapsing tower clatters without distorting.
Built to be tested
The rules, physics and AI live in plain TypeScript with no React in them. The same code runs in the browser and in Node scripts that check an idle tower stays still and play whole AI-vs-AI games. React Three Fiber only draws the result.