贪吃蛇游戏代码,是一款娱乐游戏,装了了c++平台,copy过去可以直接使用
Snake game code, is an entertainment game, installed the c ++ platform, copy the past can be used directly (2017-06-11, C++ Builder, 7KB, 下载2次)
扫雷程序
为避免边界的特殊处理,故将二维数组四周边界扩展1
方向数组
统计以(x,y)为中心的四周的雷数目
模拟游戏过程,若点到一个空白,则系统自动向外扩展
条件比较多,一是不可以让两个方向坐标同时为0,否则递归调用本身!
二是递归不能出界.三是要保证不返回调用。
将map全部初始化为-1,以后用-1表示未涉及的区域
点中雷之后游戏结束,并且输出雷的位置
Mine clearance procedures
Special treatment to avoid boundary, boundary extension around 1 to 2 d array
The direction of the array
Statistics (x, y) centered around the perimeter of the ray number
Simulation game process, if the point to a blank, the system automatically extend outward
Requirements is more, it is can not let two direction coordinates, at the same time is 0, or recursive calls itself!
2 it is recursive can t out. Three is to ensure that don t return calls.
Will map all initialized to 1, with 1 not said in the area
Points after the game, and the location of the output ray (2017-03-24, C++ Builder, 6KB, 下载0次)
还是个好玩的经典小游戏,练习编成,程序开发,娱乐游戏。
Still a fun classic game, practice establishment, and application development, entertainment and games. (2011-03-01, C++ Builder, 61KB, 下载4次)