文件名称:Simulator
- 所属分类:
- matlab例程
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 99kb
- 下载次数:
- 0次
- 提 供 者:
- cryst******
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
模拟蚂蚁和食蚁兽的生存规律。在20X20的网格世界里,每个生物每次可向四个方向移动(但不会移除网格边缘),食蚁兽会吃掉在他目标处的蚂蚁-The goal for this programming project is to create a simple 2D predator-prey simulation.
In this simulation the prey are ants and the predators are doodlebugs.
These critters live in a world composed of a 20x20 grid of cells.
Only one critter may occupy a cell at a time. The grid is enclosed, so a critter is not allowed to move off the edges of the world.
Time is simulated in time steps.
Each critter performs some action every time step.
In this simulation the prey are ants and the predators are doodlebugs.
These critters live in a world composed of a 20x20 grid of cells.
Only one critter may occupy a cell at a time. The grid is enclosed, so a critter is not allowed to move off the edges of the world.
Time is simulated in time steps.
Each critter performs some action every time step.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Simulator\Ant.cpp
.........\Ant.h
.........\constants.h
.........\Doodlebug.cpp
.........\Doodlebug.h
.........\Organism.cpp
.........\Organism.h
.........\Simulator.exe
.........\testOrganism.cpp
.........\World.cpp
.........\World.h
Simulator
.........\Ant.h
.........\constants.h
.........\Doodlebug.cpp
.........\Doodlebug.h
.........\Organism.cpp
.........\Organism.h
.........\Simulator.exe
.........\testOrganism.cpp
.........\World.cpp
.........\World.h
Simulator