- 博客(0)
- 资源 (2)
空空如也
简单的元胞自动机程序
public class Cell extends Frame implements Runnable{
Thread runner = new Thread(this);//为类定义一个线程,在start中启用
public static int width = 308;
public static int height = 255;
int cellGrid[][] = null;
int tempCellGrid[][] = null;
int rule[][][][][][][][][];//判断规则,每次预先生成
int size = 50;
int delay = 500;
double per = 0.3;//起始时生存者占整个世界的比率
int square,fringe;//作图时方格及空隙大小
Image offScreenImage = null;
boolean running;//运行停启标志
2012-11-15
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人