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!
To find the first implementation, please check src/game.ts
available before commit 0c2dc7f7
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.
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.