文件名称:Life_Game2.12

  • 所属分类:
  • C#编程
  • 资源属性:
  • [Windows] [Visual.Net] [Basic/ASP] [源码]
  • 上传时间:
  • 2014-01-15
  • 文件大小:
  • 1.26mb
  • 下载次数:
  • 0次
  • 提 供 者:
  • 梁**
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用

基于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

............\WindowsFormsApplication1\obj\x86\Debug\GenerateResource-IntelliTrace.read.1.tlog

............\........................\...\...\.....\GenerateResource-IntelliTrace.read.12.tlog

............\........................\...\...\.....\GenerateResource-IntelliTrace.read.13.tlog

............\........................\...\...\.....\GenerateResource-IntelliTrace.read.14.tlog

............\........................\...\...\.....\GenerateResource-IntelliTrace.read.15.tlog

............\........................\...\...\.....\GenerateResource-IntelliTrace.read.18.tlog

............\........................\...\...\.....\GenerateResource-IntelliTrace.read.4.tlog

............\........................\...\...\.....\GenerateResource-IntelliTrace.read.8.tlog

............\........................\...\...\.....\GenerateResource-IntelliTrace.write.1.tlog

............\........................\...\...\.....\GenerateResource-IntelliTrace.write.4.tlog

............\........................\...\...\.....\GenerateResource.read.360.tlog

............\........................\...\...\.....\GenerateResource.read.362.tlog

............\........................\...\...\.....\GenerateResource.read.369.tlog

............\........................\...\...\.....\GenerateResource.read.377.tlog

............\........................\WindowsFormsApplication1\Ant.cs

............\........................\........................\bin\Debug\WindowsFormsApplication1.exe

............\........................\........................\...\.....\WindowsFormsApplication1.pdb

............\........................\........................\...\.....\WindowsFormsApplication1.vshost.exe

............\........................\........................\...\.....\WindowsFormsApplication1.vshost.exe.manifest

............\........................\........................\ca.ico

............\........................\........................\Cells.cs

............\........................\........................\Form1.cs

............\........................\........................\Form1.Designer.cs

............\........................\........................\Form1.resx

............\........................\........................\Gridlines.cs

............\........................\........................\gridset.cs

............\........................\........................\gridset.Designer.cs

............\........................\........................\gridset.resx

............\........................\........................\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache

............\........................\........................\...\...\.....\DesignTimeResolveAssemblyReferencesInput.cache

............\........................\........................\...\...\.....\GenerateResource.read.1.tlog

............\........................\........................\...\...\.....\GenerateResource.write.1.tlog

............\........................\........................\...\...\.....\ResolveAssemblyReference.cache

............\........................\........................\...\...\.....\WindowsFormsApplication1.csproj.FileListAbsolute.txt

............\........................\........................\...\...\.....\WindowsFormsApplication1.exe

............\........................\........................\...\...\.....\WindowsFormsApplication1.Form1.resources

............\........................\........................\...\...\.....\WindowsFormsApplication1.gridset.resources

............\........................\........................\...\...\.....\WindowsFormsApplication1.pdb

............\........................\........................\...\...\.....\WindowsFormsApplication1.Properties.Resources.resources

............\........................\........................\Program.cs

............\........................\........................\...perties\AssemblyInfo.cs

............\........................\........................\..........\Resources.Designer.cs

............\........................\........................\..........\R

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org