pile1

315f5b

pile2

db76d0

pile3

78c43b

pile4

8ac006

pile5

4e4a01

pile6

64612b

pile7

1fce77

pile8

c86934

unused

5bfc94c75894edd3

**17 Jun 2021**

For each of the 8 piles, read 3 bytes as a triple

`(x, y, amount)`

. At position (x, y), place
`amount`

grains. Then, for all cells in the grid, if there are
**4 or more**grains, spill one grain in each of the four cardinal directions. Repeat this process until no grains fall. This is a cellular automaton known as the Abelian
sanpile model and it produces surprisingly interesting and complex patterns. When two piles interact, the result is
mostly a jumbled mess.