中山大学软件工程中级实训Part3_DesignReport
2017-03-26 21:01
253 查看
欢迎访问我的个人博客:Talk is cheap. Show me the code!。我相信会有所收获的。
DesignReport
1.Inception: clarify the details of the problem:a. What will a jumper do if the location in front of it is empty, but the location two cells in front contains a flower or a rock?
Answer:
The jumper will move one step to the empty cell in front of it and then jump over a flower or a rock when the jumper goes on moving.
b. What will a jumper do if the location two cells in front of the jumper is out of the grid?
Answer:
The jumper will only move one step in front of it and then turn 90 degrees to right to avoid letting itself out of the grid.
c. What will a jumper do if it is facing an edge of the grid?
Answer:
The jumper will turn 90 degrees to right to avoid letting itself out of the grid when facing an edge of the grid.
d. What will a jumper do if another actor (not a flower or a rock) is in the cell that is two cells in front of the jumper?
Answer:
In my design, I let the one jumper which is in front of the other one go first.
It moves two cells at first and then the other one moves to the location of the privious one.
e. What will a jumper do if it encounters another jumper in its path?
Answer:
In my design:
If the two jumpers is two cells away each other, I let one of them moves one cell just like the other one is considered as a rock or a flower.
And then, I let the other one jumps over the privious one. That is to say, the other one moves itself to the location of the privious one.
If the two jumpers is adjacent with each other, they can move two cells to jump over each other regularly.
f. Are there any other tests the jumper needs to make?
Answer:
What will a jumper do if the two cells in front of it are both a flower or a rock or a jumper?
In my design, it can turn 45 degrees and move two cells if there is empty.
Etc…
相关文章推荐
- 中山大学软件工程中级实训阶段一自学报告
- 中山大学软件工程专业初级实训-会议议程管理Agenda
- SQL应用中级指南 Part4:(数据字典)
- 软考中级(网络工程师)------下午实训篇
- 中级实训,智能小车 所用Python
- 中山大学软件学院中级实训-GridWorld
- JME3中级手册一API特征映射4
- Objective-C Programming: The Big Nerd Ranch Guide (2nd Edition) 阅读笔记(Part V)
- Toolbar详解 · Material Design Part 2
- 身在计院 路在何方 part-1
- 实训随笔:EL表达式JSON应用
- 人脸检测——mtcnn思想,生成negative、positive、part样本。
- Objective-C 学习笔记 - part 11 - 错误处理
- The Similarities and Differences Between C# and Java -- Part 1(译)
- 笔记筑:Basic Part
- 为chart web part 提供的webpart 的接口类型。
- 那些在学习iOS开发前就应该知道的事(part 1)
- ROS机器人操作系统中级教程 1
- 如何构建Android Sync Provider :Part1
- 文件翻译002片:Process Monitor帮助文档(Part 2)