#model #schellings

bin+lib schellings_model

Schelling's model written in rust

5 stable releases

1.4.0 Jul 16, 2023
1.3.2 May 19, 2023
1.2.1 May 18, 2023

#254 in GUI

35 downloads per month

GPL-3.0-only

135KB
376 lines

Schelling's model written in rust.

Creates.io Creates.io

RU

Wikipedia article on Schelling's model.

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.

You need to install rust. You need to install SDL2.

cargo install schellings_model

Open issue if you have any problems!

Screenshots

image image

Dependencies

~16MB
~358K SLoC