Talk:Abelian sandpile model: Difference between revisions
Content added Content deleted
(→A more readable Python solution.: new section) |
|||
Line 68: | Line 68: | ||
print('\nAfter:') |
print('\nAfter:') |
||
show_area() |
show_area() |
||
</lang> |
|||
Output: |
|||
<lang> |
|||
Before: |
|||
0 0 0 0 0 0 0 0 0 0 |
|||
0 0 0 0 0 0 0 0 0 0 |
|||
0 0 0 0 0 0 0 0 0 0 |
|||
0 0 0 0 0 0 0 0 0 0 |
|||
0 0 0 0 0 0 0 0 0 0 |
|||
0 0 0 0 0 0 0 0 0 0 |
|||
0 0 0 0 0 0 0 0 0 0 |
|||
0 0 0 0 0 0 0 0 0 0 |
|||
0 0 0 0 0 0 0 0 0 0 |
|||
0 0 0 0 0 0 0 0 0 0 |
|||
After: |
|||
0 0 0 0 0 0 0 0 0 0 |
|||
0 0 0 1 2 1 0 0 0 0 |
|||
0 0 2 2 2 2 2 0 0 0 |
|||
0 1 2 2 2 2 2 1 0 0 |
|||
0 2 2 2 0 2 2 2 0 0 |
|||
0 1 2 2 2 2 2 1 0 0 |
|||
0 0 2 2 2 2 2 0 0 0 |
|||
0 0 0 1 2 1 0 0 0 0 |
|||
0 0 0 0 0 0 0 0 0 0 |
|||
0 0 0 0 0 0 0 0 0 0 |
|||
</lang> |
</lang> |