Freezed
043d088405
Print the state of a sand `pile` after droping `n` sand grain on top of it. * Sand pile is a square table of uneven size (viewed from up) * Sand grain is always dropped on center of pile * When a cell had 4 grains inside, these grains moves on the near 4th cells * Grains going out the pile are losts |
||
---|---|---|
.. | ||
reorganize_string.py | ||
sand_grain_drop.py |