schellings_model

Crates.ioschellings_model
lib.rsschellings_model
version1.4.0
sourcesrc
created_at2023-05-18 16:34:37.101993
updated_at2023-07-16 14:04:36.799142
descriptionSchelling's model written in rust.
homepagehttps://github.com/GreatC0der/schellings_model/blob/master/readme.md
repositoryhttps://github.com/GreatC0der/schellings_model
max_upload_size
id868160
size232,120
(theunixer)

documentation

https://github.com/GreatC0der/schellings_model/blob/master/readme.md#key-bindings

README

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

Commit count: 83

cargo fmt