文件名称:boom-the-plane
介绍说明--下载内容均来自于网络,请自行研究使用
要点分析:
1. 欢迎界面
2. 游戏设置
(1) 飞机数量对玩家的输入合理性进行判断,若不合理返回默认值
(2) 棋盘大小等正在研发中…
3. 游戏帮助(输出游戏介绍及规则)
4. 玩家对飞机位置的设置
(1) 需输入飞机头坐标及机头朝向
(2) 输出设置后的地图
(3) 对飞机放置的合法性判断(是否出界/重叠)
(4) 输入有误时重新设置
(5) 玩家确认设置后输出空白页面
5. 开始游戏
(1) 由玩家轮流输入自己的选择
(2) 根据玩家的选择,输出玩家地图
<1>若玩家选择的坐标上没有飞机,则输出‘O’
<2>若玩家选择的坐标上是机身,则输出‘X’
并输出“敌机被击中!”
<3>若玩家选择的坐标上是机头,则输出‘S’
并输出“恭喜你!你击落敌人一架飞机”
及敌方幸存飞机数量。
(3) 若玩家再次选择之前选择过的坐标,需再次确认
(4) 若玩家选择出界,输出提示并让其重新输入
(5) 若一方将对方飞机全部击毁,则输出胜利
并询问是否重新开始游戏
-
Analysis of Key Points:
1 Welcome screen
2 game settings
(1) The number of aircraft on the player s input reasonableness to determine if unreasonable return to the default value
(2) The board size is being developed ...
Game help (output game introduction and rules)
4 players set on the position of the aircraft
(1) the need to enter the aircraft head coordinates and head toward
(2) the output is set after the map
(3) aircraft placed legitimacy judgment (whether out of bounds/overlap)
(4) when the input Reset
(5) players confirm the setting output blank page
5 to start the game
(1) by the players take turns to enter their own choice
(2) based on the player s choice, output players map
<1> if the players choose the coordinates on the aircraft, output O
<2> If the players choose the coordinates on the body, then the output X
And output, "the enemy is hit!"
<3> If the players choose the coordinates on the nose, then output the S
You shoot
1. 欢迎界面
2. 游戏设置
(1) 飞机数量对玩家的输入合理性进行判断,若不合理返回默认值
(2) 棋盘大小等正在研发中…
3. 游戏帮助(输出游戏介绍及规则)
4. 玩家对飞机位置的设置
(1) 需输入飞机头坐标及机头朝向
(2) 输出设置后的地图
(3) 对飞机放置的合法性判断(是否出界/重叠)
(4) 输入有误时重新设置
(5) 玩家确认设置后输出空白页面
5. 开始游戏
(1) 由玩家轮流输入自己的选择
(2) 根据玩家的选择,输出玩家地图
<1>若玩家选择的坐标上没有飞机,则输出‘O’
<2>若玩家选择的坐标上是机身,则输出‘X’
并输出“敌机被击中!”
<3>若玩家选择的坐标上是机头,则输出‘S’
并输出“恭喜你!你击落敌人一架飞机”
及敌方幸存飞机数量。
(3) 若玩家再次选择之前选择过的坐标,需再次确认
(4) 若玩家选择出界,输出提示并让其重新输入
(5) 若一方将对方飞机全部击毁,则输出胜利
并询问是否重新开始游戏
-
Analysis of Key Points:
1 Welcome screen
2 game settings
(1) The number of aircraft on the player s input reasonableness to determine if unreasonable return to the default value
(2) The board size is being developed ...
Game help (output game introduction and rules)
4 players set on the position of the aircraft
(1) the need to enter the aircraft head coordinates and head toward
(2) the output is set after the map
(3) aircraft placed legitimacy judgment (whether out of bounds/overlap)
(4) when the input Reset
(5) players confirm the setting output blank page
5 to start the game
(1) by the players take turns to enter their own choice
(2) based on the player s choice, output players map
<1> if the players choose the coordinates on the aircraft, output O
<2> If the players choose the coordinates on the body, then the output X
And output, "the enemy is hit!"
<3> If the players choose the coordinates on the nose, then output the S
You shoot
(系统自动生成,下载前可以参看下载内容)
下载文件列表
boom the plane.cpp