首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 对于cs231蚂蚁模拟器

对于cs231蚂蚁模拟器

  • 资源大小:1.79 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: cs 模拟器 对于 蚂蚁

资 源 简 介

(Some spelling errors may be present, pasted from PDF) For this assignment, you must implement a simulation of ants foraging for food. This simulation should represent the ants as characters in a two-dimensional grid, and it should represent the amount of food in an area with a number (0-9) which represents the tens digit of the amount of food in a location. If the amount of food is 0, then an empty space should be displayed instead of a number. The ants should be represented by two diff erent characters - one that is displayed when the ant is carrying food and the other when the ant has its hands empty. The key to this simulation is that ants communicate with one another using a chemical signal called a pheromone. They essentially leave little chemical breadcrumbs on the ground when they find food in order to allow others (and themselves) a way to fi nd the food"s location. They carry this chemical with them and drop a part of their supply on the ground at each ste

文 件 列 表

Map.h
Ant.cpp
Ant.h
Main.cpp
Map.cpp

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.182596s