GRIDTRIS

About GRIDTRIS

A re-imagined Tetris where pieces don't fall - you drag them onto a 9×9 grid. Complete any row or column to clear it. Three shapes at a time. A smart generator that adapts to your board.

How to play

  1. Drag one of the three shapes from your tray onto the grid.
  2. Drop where it fits (the cells light green for valid, red for invalid).
  3. Fill any row OR column completely to clear it.
  4. When all three shapes are placed, a new trio appears.
  5. Game over when none of your remaining shapes can fit anywhere.

Multi-line clears (clearing 2+ rows/columns in one placement) earn a combo. Consecutive placements that clear lines build a streak. Both add score multipliers.

Modes

EASY
The generator prefers shapes that fit your gaps and lead to clears. Good for warming up.
NORMAL
Balanced - adapts to your board with a mix of friendly and challenging shapes.
HARD
Adversarial - the generator picks rarely-fitting shapes to punish your gaps. Build streaks to soften it.
⚗ LAB
Hard generator + unlimited hints. A practice / experimentation mode.
🔥 PRESSURE
Difficulty scales with your score through five tiers: gentle → rising → hunting → boiling → meltdown. At meltdown the generator may give you trios that can't be placed - the engine is finally trying to end you.
🎯 DAILY
Every player today plays the exact same trio sequence, drawn from a deterministic daily seed. Pure-skill leaderboard, resets at 00:00 GMT.

Multiplayer

Click 🌐 to play with another person. Three flavors:

Modes: Combat (race for the higher score on independent boards) or three co-op variants (Turns, Rounds, or Free Play) on a shared board. Server is authoritative - placements are validated, scores can't be tampered with.

Hint engine + Coach mode

💡 Hint shows you the optimal placement using a depth-3 beam search across all three shapes - it considers your next two moves, not just the current one. Limited to a few per game; earn more by chaining combos and reaching streak milestones.

🎓 Coach, when toggled on, grades every placement against the AI's best move (OPTIMAL / GREAT / GOOD / MISSED CLEAR). A summary at game-over shows your average optimality - useful for practicing.

Leaderboards

Five per mode: daily, weekly, monthly, yearly, all-time. Scores are validated server-side by replaying your placement sequence - only matching scores appear on public leaderboards.

Skins

Earn cosmetic palettes by performance - high scores, total games, pressure milestones, combo counts, daily challenge plays. The legendary Holographic palette has an animated iridescent shimmer; Cyberpunk overlays scanlines and heavy neon glow; Magma pulses with heat. Equip them in the 🎨 Wardrobe. In multiplayer your equipped palette is visible to your opponent.

Built with

Vanilla TypeScript/JavaScript on the client (no framework), NestJS + Prisma + Postgres on the server, Supabase for authentication, Socket.io for real-time multiplayer, deployed on Fly.io.