Minesweeper-rs/README.MD

18 lines
490 B
Plaintext
Raw Normal View History

2023-04-22 22:10:47 +00:00
# Rust Minesweeper
2023-05-16 03:35:41 +00:00
For more information, and a WASM powered demo: [https://alexanderbass.com/show/2023/rust-minesweeper/](https://alexanderbass.com/show/2023/rust-minesweeper/)
2023-04-22 22:10:47 +00:00
# Running
To run the desktop version:
```
cargo run
```
To compile to WASM:
```
cargo build --target wasm32-unknown-unknown --release
```
2023-05-16 03:35:41 +00:00
To run that WASM, copy the resulting `target/wasm32-unknown-unknown/release/wasm` into the same directory as `minesweeper.html` and serve both files through a webserver.