C++大富翁代码
所属分类:Windows编程
开发工具:C/C++
文件大小:349KB
下载次数:6
上传日期:2018-05-15 21:11:38
上 传 者:红黑二叉树
说明: 现在要设计一个类似“大富翁”的游戏:有一条由20个格子组成的环形跑道,
其中一个格子是起点; 两只小老鼠都从起点按相反方向出发,一只老鼠
按正方向前进且每轮前进4格,另一只老鼠按逆方向 前进且每轮前进3格;
每只老鼠出发时都有100点生命值和100个金币; 跑道由普通格子、带金币
格子、带陷阱格子、带障碍格子的格子等四种种格子组成;
游戏规则如下:
a)起点是普通格子;任何普通格子老鼠可顺利通过;
b)老鼠每路过或停留在一个带金币格子增加50个金币;
c)老鼠停留在带陷阱格子时,损失生命值80点;
d)老鼠路过带障碍格子时,本轮停止前进。
(Now we need to design a game like "monopoly": there is an annular runway made up of 20 grids.
One of them is the starting point; two mice start from the opposite direction, a mouse.
Forward in a forward direction and 4 rounds in each round, while the other mouse advances in the opposite direction and moves 3 times in each round.
Each mouse has 100 life points and 100 gold coins on its departure.
Lattice, trap lattice, lattice with obstacles, four kinds of lattice.
The rules of the game are as follows:
A) the starting point is ordinary grid; any ordinary checker can pass smoothly.
B) each mouse passes or stays in a gold coin lattice to add 50 gold coins.
C) when a mouse stays in a trap lattice, it loses 80 of its life value.
D) when the mouse passes the barrier lattice, the wheel stops.)
文件列表:[举报垃圾]
字符图像例, 0 , 2016-08-31
字符图像例\Step01_组织类.txt, 4309 , 2013-06-13
字符图像例\Step02_实现合成功能.txt, 4535 , 2008-12-17
字符图像例\Step03_实现深拷贝赋值.txt, 6763 , 2008-12-17
字符图像例\Step04_实现Display.txt, 8815 , 2008-12-17
字符图像例\Step05_完整.txt, 5934 , 2008-12-18
字符图像例\大富翁, 0 , 2016-11-24
字符图像例\大富翁.txt, 2260 , 2011-06-13
字符图像例\大富翁\Debug, 0 , 2016-08-31
字符图像例\大富翁\Debug\simgame.exe, 208946 , 2009-12-27
字符图像例\大富翁\main.cpp, 441 , 2016-06-19
字符图像例\大富翁\Release, 0 , 2016-08-31
字符图像例\大富翁\Release\main.o, 3642 , 2016-06-19
字符图像例\大富翁\Release\simgame.exe, 1051447 , 2016-06-19
字符图像例\大富翁\Release\simgame.o, 3541 , 2016-06-19
字符图像例\大富翁\simgame.cbp, 2346 , 2016-06-19
字符图像例\大富翁\simgame.cpp, 1863 , 2016-06-19
字符图像例\大富翁\simgame.depend, 757 , 2016-11-24
字符图像例\大富翁\simgame.dsp, 4451 , 2009-12-27
字符图像例\大富翁\simgame.dsw, 537 , 2009-12-27
字符图像例\大富翁\simgame.h, 751 , 2009-12-27
字符图像例\大富翁\simgame.layout, 737 , 2016-11-24
字符图像例\大富翁\simgame.ncb, 33792 , 2009-12-27
字符图像例\大富翁\simgame.opt, 49664 , 2009-12-27
字符图像例\大富翁\simgame.plg, 248 , 2009-12-27
近期下载者:
相关文件:
收藏者: