#model #simulation #schellings

app schellings_model

Schelling's model written in rust

4 stable releases

1.3.2 May 19, 2023
1.2.1 May 18, 2023

#3 in Simulation

Download history 16/week @ 2023-05-12 96/week @ 2023-05-19 18/week @ 2023-05-26

130 downloads per month

GPL-3.0-only

135KB
364 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

~13MB
~306K SLoC