c#元胞自动机_Life_Game2.12

Life_Game2.12

所属分类:游戏

开发工具:C#

文件大小:1289KB

下载次数:15

上传日期:2014-01-15 14:23:04

上 传 者:梁宇翔

说明:  基于C#的生命游戏,兰顿蚂蚁等元胞自动机的实现,完整的程序

Form1.cs 为主窗体

可以在245行之后,添加自己的规则。

Gridlines.cs为网格类,控制网格的尺寸、线型、颜色等,以及网格绘制等

Cell.cs为细胞类,控制所有的单元格(细胞、兰顿蚂蚁的地板)的形状、状态、颜色,以及细胞绘制等。

Ant.cs为蚂蚁类,类似细胞类,有方向改变,前进等方法。

gridset.cs为设置窗体,用于设置一些参数。

目前,支持网格三种线型、细胞方形和圆形,线条颜色、生存细胞颜色、死亡细胞颜色、蚂蚁颜色均能成为任意色彩。

选择自定义初等自动机后,在 设置 中可以设置 规则号 0~255

菜单栏--控制--随机分布 可以在当前网格中随机创建细胞,概率为50 。

但是无法立即显示出来(不知道什么问题),点击 开始 就能显示出来

(C#-based implementation of the Game of Life, Langton ants and other cellular automata, the complete program Form1.cs main form after the 245 line can add your own rules. Gridlines.cs class grid control grid size, line, color, and draw a grid cell types such as Cell.cs to control all of the cells (cells, Langton ants floor) shape, state , color, and rendering such cells. Ant.cs ant class, similar to the cell type, change of direction, forward and other methods. gridset.cs to set the form used to set some parameters. Currently, support for grid three kinds of linear, square and round cells, line color, survival cell color, the color of dead cells, ants color can become any color. Select the custom elementary automata, in the setting rule can be set from 0 to 255 bar Menu- Control- randomly distributed randomly to create a grid in the current cell, the probability of 50 . But you can not show up immediately (do not know what the problem is), you can click Start displayed)

文件列表:[举报垃圾]

生命游戏2.12

............\Help.txt,629,2013-06-17

............\WindowsFormsApplication1

............\........................\obj

............\........................\...\x86

............\........................\...\...\Debug

............\........................\...\...\.....\GenerateResource-IntelliTrace.read.1.tlog,7342,2013-01-20

............\........................\...\...\.....\GenerateResource-IntelliTrace.read.12.tlog,3460,2013-01-20

............\........................\...\...\.....\GenerateResource-IntelliTrace.read.13.tlog,3498,2013-01-20

............\........................\...\...\.....\GenerateResource-IntelliTrace.read.14.tlog,2178,2013-01-20

............\........................\...\...\.....\GenerateResource-IntelliTrace.read.15.tlog,5276,2013-01-20

............\........................\...\...\.....\GenerateResource-IntelliTrace.read.18.tlog,1328,2013-01-20

............\........................\...\...\.....\GenerateResource-IntelliTrace.read.4.tlog,2758,2013-01-20

............\........................\...\...\.....\GenerateResource-IntelliTrace.read.8.tlog,1858,2013-01-20

............\........................\...\...\.....\GenerateResource-IntelliTrace.write.1.tlog,1694,2013-01-20

............\........................\...\...\.....\GenerateResource-IntelliTrace.write.4.tlog,2146,2013-01-20

............\........................\...\...\.....\GenerateResource.read.360.tlog,602,2013-01-20

............\........................\...\...\.....\GenerateResource.read.362.tlog,5018,2013-01-20

............\........................\...\...\.....\GenerateResource.read.369.tlog,5018,2013-01-20

............\........................\...\...\.....\GenerateResource.read.377.tlog,602,2013-01-20

............\........................\WindowsFormsApplication1

............\........................\........................\Ant.cs,6753,2013-06-13

............\........................\........................\bin

............\........................\........................\...\Debug

............\........................\........................\...\.....\WindowsFormsApplication1.exe,97280,2013-06-17

............\........................\........................\...\.....\WindowsFormsApplication1.pdb,161280,2013-06-17

............\........................\........................\...\.....\WindowsFormsApplication1.vshost.exe,11600,2013-06-17

............\........................\........................\...\.....\WindowsFormsApplication1.vshost.exe.manifest,490,2010-03-17

............\........................\........................\Cells.cs,15668,2013-06-16

............\........................\........................\Form1.cs,51109,2013-06-17

............\........................\........................\Form1.Designer.cs,35185,2013-06-16

............\........................\........................\Form1.resx,39123,2013-06-16

............\........................\........................\Gridlines.cs,7752,2013-06-16

............\........................\........................\gridset.cs,3971,2013-06-16

............\........................\........................\gridset.Designer.cs,21098,2013-06-16

............\........................\........................\gridset.resx,6628,2013-06-16

............\........................\........................\obj

............\........................\........................\...\x86

............\........................\........................\...\...\Debug

............\........................\........................\...\...\.....\DesignTimeResolveAssemblyReferences.cache,4501,2013-01-20

............\........................\........................\...\...\.....\DesignTimeResolveAssemblyReferencesInput.cache,6602,2013-06-17

............\........................\........................\...\...\.....\GenerateResource.read.1.tlog,8396,2013-06-16

............\........................\........................\...\...\.....\GenerateResource.write.1.tlog,14416,2013-06-16

............\........................\........................\...\...\.....\ResolveAssemblyReference.cache,8031,2013-05-23

............\........................\........................\...\...\.....\TempPE

............\........................\........................\...\...\.....\WindowsFormsApplication1.csproj.FileListAbsolute.txt,14025,2013-06-17

............\........................\........................\...\...\.....\WindowsFormsApplication1.exe,97280,2013-06-17

............\........................\........................\...\...\.....\WindowsFormsApplication1.Form1.resources,22776,2013-06-16

............\........................\........................\...\...\.....\WindowsFormsApplication1.gridset.resources,180,2013-06-16

............\........................\........................\...\...\.....\WindowsFormsApplication1.pdb,161280,2013-06-17

............\........................\........................\...\...\.....\WindowsFormsApplication1.Properties.Resources.resources,180,2013-06-16

............\........................\........................\Program.cs,515,2013-05-19

............\........................\........................\Properties

............\........................\........................\..........\AssemblyInfo.cs,1398,2013-01-11

............\........................\........................\..........\Resources.Designer.cs,2896,2013-01-11

............\........................\........................\..........\Resources.resx,5612,2013-01-11

............\........................\........................\..........\Settings.Designer.cs,1107,2013-01-11

............\........................\........................\..........\Settings.settings,249,2013-01-11

............\........................\........................\WindowsFormsApplication1.csproj,4282,2013-06-16

............\........................\WindowsFormsApplication1 - 快捷方式.lnk,2155,2013-06-17

............\........................\WindowsFormsApplication1.sln,914,2013-04-22

............\ͼƬ

............\....\1号.jpg,141205,2013-06-16

............\....\30号.jpg,183968,2013-06-16

............\....\3号.jpg,138718,2013-06-16

............\....\67号.jpg,179959,2013-06-16

............\....\6个ant变化.jpg,258402,2013-05-24

............\....\6个生命游戏变化.jpg,395971,2013-05-24

............\....\78号.jpg,193978,2013-06-16

............\....\ant16.ico,1150,2013-06-11

............\....\ant32.ico,4286,2013-06-11

............\....\ant48.ico,9662,2013-06-11

............\....\C#生命游戏.jpg,169830,2013-05-23

............\....\一维的细胞自动机.jpg,32957,2013-05-22

............\....\兰顿蚂蚁.jpg,25060,2013-05-22

............\....\兰顿蚂蚁gif.gif,1181,2013-06-08

............\....\局部规则.jpg,53726,2013-06-16

............\....\细胞自动机1.jpg,183759,2013-03-17

............\....\细胞自动机2.jpg,198542,2013-03-17

............\计算机答辩ppt.ppt,427520,2013-06-16

近期下载者:

相关文件:

收藏者:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值