RCWeb Tetris Pro App

The RCWeb Tetris Pro App (app/tetris-pro) is a stylish multi-board shared-screen Tetris wall built around sequential QR joining. One attract-mode grid is always ready for the next player, and each new phone instantly expands the wall up to four live boards.

Icon

icon

What it does

  • Sequential QR Join Slots: The screen always shows the next available board as a live attract-mode grid with a QR code layered on top, making it obvious where the next player should join.
  • Four-Player Layout: Live games grow from one board up to four, stay centered on the display, and close the gap smoothly when someone disconnects or leaves.
  • Fair Piece Order: Every player run consumes the same shared 7-bag sequence from the same starting point, so each attempt is fed an identical piece order.
  • Persistent High Scores: The main wall keeps a local high-score table in localStorage, shows the top three across the header, and shares the top ten with controllers on game over.

How it works

The viewer keeps all game state locally in script.js, while RCWeb controllers send only small action messages across the WebSocket.

  • Shared Sequence Generator: A single bag generator creates the authoritative Tetris order, and every player state indexes into that same sequence for fairness.
  • Join-Slot Demo Board: The open slot runs a lightweight autoplay Tetris simulation, keeping the empty board animated until a phone claims it.
  • Controller Presence Tracking: Each connected phone sends heartbeats, allowing the wall to fade out abandoned boards and compact the layout without restarting everyone else.
DocumentationServer TelemetryServer StatsServer HTTP LogServer WebSocket Log