wythoff-nim
@jeffy24

wythoff-nim

Move a shared token left, up, or diagonal on a synced 3D Wythoff Nim board.

About this tile

Wythoff Nim is a two-player grid game with one shared token. Coral and Teal take turns moving it any distance left, up, or diagonally up-left toward the golden origin. The player who lands on the origin wins.

This Poe app keeps the playable board as the main screen element: a Three.js 7x7 grid, animated token motion, glowing legal targets, top position stats, and compact bottom controls for a fresh round or a one-move finish drill.

What you can do

  • Tap legal cells: Choose a glowing target directly on the board.
  • Move in three lines: Go left, up, or diagonal toward the origin.
  • Win the origin: Land on the golden top-left cell to win.
  • Practice the finish: The drill loads a one-move win.
  • Share one instance: Synced-store keeps the token state consistent across clients.

Development

  • ./scripts/doctor.sh checks the local toolchain.
  • bun run type-check verifies TypeScript.
  • bun test runs synced-store and happy-dom UI tests.
  • bun run test:playwright builds and runs browser tests.
  • bun run screenshot:regen regenerates assets/screenshot.png.