A simple visualization for a sandpiles algorithm.
Each square on screen represents a value from 0-7, each frame the center square gets incremented by 1. When a cell goes above 7, it will topple down in a knight's chess pattern and raise those cells by 1/8th of it's value.
This works on windows only. To clone the repo use
git clone https://github.com/SHA65536/Sandpiles_C.git
- Click the
make.bat
Launch the exe to see the algorithm.
Commandline Arguments:
-s
: silent, will not print to screen
-f
: file, will save to file
-i <num>
: iterations, number of frames to calculate
-m <mode>
: k = knight mode, a = adjacent mode
Sandpiles visualization Project! Learning programming and decided to try make this project. Feedback welcome, repository in comments. from r/C_Programming