TypeScript/JavaScript version of The Impossible Bridge Book.
I deploy this on my GitHub Pages page.
You can see the original at my bridge page. Ancient, written to run on the server in Perl.
Now that there is an arbitrary precision integer class built into Javsscript, it is easy to implement The Impossible Bridge Book entirely in the browser.
For personal education reasons, I am going to try to do the project in TypeScript and compile to Javascript.
Working with npm, tsc, jest, and VSCode, on a Mac. Some of the npm tasks require Linux or Mac or other Unix-y platform, because I couldn't get jest and tsc to agree about imports, so I wrote a gross perl hack.
To run, you will need npm installed.
- Clone the repository with the --recurse-submodules
- Run
npm install - Run
npm run build - Copy the contents of the
dest/folder to a directory visible to a browser. - Open
index.htmlin a browser.