An open API service indexing awesome lists of open source software.

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

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
```