SHA65536 / Sandpiles_C

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


Sandpiles Visualization

About The Project

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.

Prerequisites

This works on windows only. To clone the repo use

git clone https://github.com/SHA65536/Sandpiles_C.git

Installation

  • Click the make.bat

Usage

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

On Reddit

Sandpiles visualization Project! Learning programming and decided to try make this project. Feedback welcome, repository in comments. from r/C_Programming

About


Languages

Language:C 98.6%Language:Batchfile 1.4%