NCF参数化建筑论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 155149|回复: 240
打印 上一主题 下一主题

[个人作品] 蛋疼版元胞自动机(自己想的不知道对不对)

  [复制链接]
1m
发表于 2009-10-28 08:17:32 | 显示全部楼层
先交完图再仔细看RVB,画的我要死了。

If arrStates(i,j) = 1 Then 'Live cell
                                If intLCount < 2 Then
                                        arrStates(i,j) = 0
                                End If
                                If intLCount > 3 Then
                                        arrStates(i,j) = 0
                                End If
                        
                        Else 'Dead Cell
                                If intLCount = 3 Then
                                        arrStates(i,j) = 1
                                End If
2m
发表于 2009-10-28 08:18:05 | 显示全部楼层
这个是我那个的三个if
3m
发表于 2009-10-28 10:33:49 | 显示全部楼层
这要是不一样就乱了...

小黑屋|手机版|NCF参数化建筑论坛 ( 浙ICP备2020044100号-2 )    辽公网安备21021102000973号

GMT+8, 2024-5-3 20:04 , Processed in 0.074950 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表