https://github.com/gbbirkisson/wa-tor
The Wa-Tor simulation running in the terminal
https://github.com/gbbirkisson/wa-tor
Last synced: about 1 year ago
JSON representation
The Wa-Tor simulation running in the terminal
- Host: GitHub
- URL: https://github.com/gbbirkisson/wa-tor
- Owner: gbbirkisson
- Created: 2021-11-04T22:08:10.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-04T22:18:26.000Z (over 4 years ago)
- Last Synced: 2024-12-25T17:27:11.837Z (over 1 year ago)
- Language: Rust
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Wa-Tor
This project is just a simple implementation of the [Wa-Tor](https://en.wikipedia.org/wiki/Wa-Tor) simulation. The simulation plays out in the terminal, so the terminal has to support emojis. The simulation is configured with some sane defaults, but feel free to clone it and play around with the constants at the top:
```rust
const FISH_BREED_INTERVAL: u8 = 10;
const SHARK_BREED_INTERVAL: u8 = 14;
const SHARK_STARVE_INTERVAL: u8 = 8;
const WRAP_WORLD: bool = true;
const MS_BETWEEN_CHRONON: u64 = 5;
```
## Running
```console
$ cargo run --release
```
## Test + Linting
```console
$ make
```