This is a fork of another repo of mine which is being made largely on a lark.
What follows is the README for the repo linked above.
This is a fork of my own non-stack-based version of the same game. You are most likely to be more interested in the other one since this one exists just for my own practice at expressing solitaire games in a stack-based style since I plan to do so in another project.
What follows is the README for the version linked above, so the playable version link is for that version. Note though the licensing that the license applies to both versions.
This is a port of Hunter X's pico-8 version of Zachtronic's Shenzhen Solitaire.
Use z, x, and the arrow keys to play. If you win, you can press Enter to deal another game.
-
Install newest nightly Rust:
$ curl https://sh.rustup.rs -sSf | sh
-
Install WebAssembly target:
$ rustup target add wasm32-unknown-unknown
-
Install cargo-web:
$ cargo install -f cargo-web
-
Build it:
$ cargo web start --target wasm32-unknown-unknown --release
-
Visit
http://localhost:8000
with your browser.
Replace --target-webasm
with --target wasm32-unknown-emscripten
or --target asmjs-unknown-emscripten
if you want to build it using another backend. You will also have to install the
corresponding targets with rustup
- wasm32-unknown-emscripten
and asmjs-unknown-emscripten
respectively.
licensed under Apache, MIT and CC BY-NC-SA 4.0.