rudifa-puzzle-15

Stars
0

A minimal Puzzle-15 implementation

Ready to run in dev mode, and to build and preview the site in a browser.

Configured to use decorators @customElement, @property, @state, e.t.c.

Created from rudifa vite-lit-v2-template.

References:

Lit

Vite Next Generation Frontend Tooling

Vite Getting Started

Vite.js Tutorial – How to Install and Use Vite in Your Web Projects

GUN docs

DONE

  • deployed

  • minimal game model

  • plot 4x4 game board - use buttons

  • add click detect

  • add button New Game

  • separate Puzzle15Model

  • display current value of squares (0-15)

  • model move

  • detect final state

  • modify scramble to preserve the solvable state

  • display total distance from solved state

  • add game state sharing (p2p using gun)

  • add gun-singleton