## Schelling's model written in rust.
[](https://crates.io/crates/schellings_model)
[](https://crates.io/crates/schellings_model)
### [RU](https://notabug.org/GreatC0der/schellings_model/src/master/readmeRU.md)
[Wikipedia article on Schelling's model.](https://en.wikipedia.org/wiki/Schelling%27s_model_of_segregation)
*There are subtle differences to original Schelling's model.*
---
### Key bindings
- A - Make slower.
- S - Make faster.
- D - Disable/enable rendering. When enabled, works as fast as possible.
- Z - Decrease number of neighbours alike for agent to be satisfied.
- X - Increase number of neighbours alike for agent to be satisfied.
- W - Switch theme( light / dark ).
- T - Hide toolbar.
- Q - Open this page.
### Building and installing
*Prebuilt binaries for linux are available in [releases](https://notabug.org/GreatC0der/schellings_model/releases).*
[You need to install rust.](https://www.rust-lang.org/tools/install)
[You need to install SDL2.](https://wiki.libsdl.org/SDL2/Installation)
```sh
cargo install schellings_model
```
Open issue if you have any problems!
### Screenshots

