Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rudifa/rudifa-puzzle-15


https://github.com/rudifa/rudifa-puzzle-15

Last synced: 24 days ago
JSON representation

Awesome Lists containing this project

README

        

# A minimal Puzzle-15 implementation

[![Netlify Status](https://api.netlify.com/api/v1/badges/f481f922-a81e-4a81-b922-9039b585588c/deploy-status)](https://app.netlify.com/sites/rudifa-puzzle-15/deploys)

> 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](https://github.com/rudifa/vite-lit-v2-template).

### References:

[Lit](https://lit.dev/)

[Vite Next Generation Frontend Tooling](https://vitejs.dev/)

[Vite Getting Started](https://vitejs.dev/guide/)

[Vite.js Tutorial – How to Install and Use Vite in Your Web Projects](https://www.freecodecamp.org/news/get-started-with-vite/)

[GUN docs](https://gun.eco/docs/API)

### DONE

- [deployed](https://rudifa-puzzle-15.netlify.app/)

- 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