Skip to content

A fully custom 8-bit-styled version of the bead game

Notifications You must be signed in to change notification settings

codechriscode/15puzzle

Repository files navigation

15puzzle

This is my implementation of 15puzzle UI using TypeScript, HTML5 and CSS.
There's no solvability or victory calculation (yet!), but you can play now on GitHub pages.
Enjoy!

Disclaimer

To find the first implementation, please check src/game.ts available before commit 0c2dc7f7

How to run

You can probably just open index.html in your browser. If interactivity fails, try running

npm install
npx http-server -p 8080

And open the localhost:8080 or similar address shown in the terminal.

To make changes and run

Any changes in TypeScript files will need to be recompiled. Changes in bundle.js will be overwritten after new TS compilations.

You should change TypeScript files, recompile them and run an http-server to prevent CORS issues using the scripts in your local browser.

npx tsc && npx http-server -p 8080

A single compiled file is also committed to make it easier to run anywhere.

About

A fully custom 8-bit-styled version of the bead game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published