Commit Graph

4 Commits

Author SHA1 Message Date
ff479a6fe2 Change approach global instead local
1st idea was to manage propagation cells after cells. But this looks to generate
a chain reaction that I cannot manage in a function.

New idea is to manage the whole pile :
* add a grain
* find cells that reached 4
    * change cell & update neighbors
* find cells that reached 4
    * change cell & update neighbors
2020-07-16 12:11:13 +02:00
7a8a0945c6 Drop sand grains without propagation 2020-07-16 12:11:13 +02:00
9bf58c7cef Find id for pile center 2020-07-16 12:11:13 +02:00
cb3c5623ae Add specs for sand_grain_drop.py 2020-07-16 12:11:13 +02:00