Melonator / Falling_Sand

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Falling Sand Cellular Automata

This cellular automata simulates sand. The rules are simple: If the cell below is empty, move down. Else if the cell to the bottom left is empty, move to the bottom left. Else if the cell to the bottom right is empty, move to the bottom right. Else, stay.

How to run

  1. Clone the repository
  2. Navigate to the project directory
  3. Install dependencies via:
pip install -r requirements.txt
  1. Run the simulation!
python main.py

Controls

Click anywhere on the screen to spawn sand

About


Languages

Language:Python 100.0%