You can play a productionized Webassembly version of the game at https://jthemphill.github.io/htmf
When running in Webassembly mode, the AI runs entirely locally on the client. This is suitable for a "static" site like a Github page, where you're allowed to ship HTML/CSS/JS to a client but aren't allowed to consume server resources.
You will need pnpm
in order to install this game's packages and build this game's TypeScript.
To build automatically, download and run hereby:
pnpm install -g hereby
hereby dev
To build manually:
- Go to
wasm
. - Run
wasm-pack build --target web
to build the WebAssembly. - Go to
www
. - Run
pnpm run dev
to start the Vite devserver.