Sand-pile
代码说明:
一堆沙子的横截面,可以使用 Margolus 型邻居仿真,但运动规则不同。 规则: 元胞有 2 个状态。状态= 0 是空的,状态= 1 代表沙子。 在任何时间步长,一个粒子,可以在2x2 块中向着底部运动。可能运动如下 所示。墙壁和底部将阻止粒子继续运动。 为了让该运动略有随机性,我亦补充说一项规则,有时处于下落状态的两个元胞还旋转,直到所有的动作都完成。(Cross-section of a pile of sand, you can type using the Margolus neighborhood simulation, but the movement rules are different. Rules: There are two cellular states. State = 0 is empty, state = 1 for sand. At any time step, a particle can be in the 2x2 block toward the bottom of the movement. May exercise the following. Walls and bottom to prevent the particles continue to campaign. To make the campaign a little random, I also added a rule, sometimes in the falling state of the two cell also rotate until all actions are completed.)
下载说明:请别用迅雷下载,失败请重下,重下不扣分!