See the simulation on this page.
- There are 2 types of fishes: the smaller one and the bigger one.
- The big fishes roam around independently.
- The small fishes tend to flock with their own kind while avoiding the big fishes.
- You need to have rust toolchain installed. See here for the instruction.
- running:
cargo run
- WASM:
- toolchain installation:
rustup target add wasm32-unknown-unknown
- building:
cargo build --target wasm32-unknown-unknown --release
- running:
- Setup a webserver in this project root folder, e.g.
cargo install basic-http-server && basic-http-server .
- Open the server via web browser
- Setup a webserver in this project root folder, e.g.
- toolchain installation: