Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zbrachinara authored Feb 14, 2023
1 parent 819c95f commit 58796f9
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Chinese Checkers???????????
Small chinese checkers implementation with nannou

![image](https://user-images.githubusercontent.com/43701041/218815879-d0630e9f-9ce8-4130-8cef-953277a39b87.png)

## Building and deploying

Both platforms assume that you have cargo installed.

For native (Linux/Mac/Windows assuming no cross-compilation): Run `cargo build --release, then get the executable
from `./target/release/ccheckers(.exe)`

For web (a `.vscode/tasks.json` task is provided for convenience for steps 2-3):
- Install wasm-bindgen either with your system's package manager or with `cargo install wasm-bindgen-cli`
- Run `cargo build --release --target wasm32-unknown-unknown`
- Run `wasm-bindgen --no-typescript --out-dir static --target web ./target/wasm32-unknown-unknown/debug/ccheckers_wasm.wasm`
- Serve `./static`

Note that for web, the `.static` directory cannot be wiped, as the html file is created manually.

0 comments on commit 58796f9

Please sign in to comment.