## Schelling's model written in rust. [![Creates.io](https://shields.io/crates/d/schellings_model.svg)](https://crates.io/crates/schellings_model) [![Creates.io](https://shields.io/crates/v/schellings_model.svg)](https://crates.io/crates/schellings_model) ### [RU](https://github.com/GreatC0der/schellings_model/blob/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://github.com/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 ![image](https://github.com/GreatC0der/schellings_model/blob/master/screenshots/dark.png) ![image](https://github.com/GreatC0der/schellings_model/blob/master/screenshots/light.png)