Skip to content

theunixer/schellings_model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Schelling's model written in rust.

Creates.io Creates.io

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 & mac os 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