大二实训(二)Part3设计文档

Part3设计文档

大二实训(二)Part3设计文档博客
@author: SYSUcarey
@date: 2018-04-22
[本人学院][(http://sdcs.sysu.edu.cn/)]
更多代码细节,欢迎访问我的github:
@https://github.com/SYSUcarey/Software-Development-Training2.git

目录:

Answer and clarify the details of the problems on vmatrix

1. 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:
(1)If the location two cells in front contains a flower, the jumper will jump to this location and the flower will be moved away.
(2)If the location two cells in front contains a rock, the jumper can’t not jump and will turn right of 90 degrees.
这里写图片描述
这里写图片描述

2. What will a jumper do if the location two cells in front of the jumper is out of the grid?

Answer:
The jumper will not jump but turn right of 90 degrees.
这里写图片描述
这里写图片描述

3. What will a jumper do if it is facing an edge of the grid?

Answer:
The jumper will not jump but turn right of 90 degrees.
这里写图片描述
这里写图片描述

4. 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:
The jumper will turn right of 90 degrees.
这里写图片描述
这里写图片描述

5. What will a jumper do if it encounters another jumper in its path?

Answer:
(1) If the two jumpers jump for the same location, the first jumper will take the location and the other one turn right of 90 degrees.
(2)If the two jumpers just jump by, which means they don’t jump to the same location, they can both jump to their own locations.
这里写图片描述
这里写图片描述

6. Are there any other tests the jumper needs to make?

Answer:
Yes, there are.
(1)If the location in front of it is empty, but the location two cells in front contains an Actor, What will the jumper do?
In this case, we designed the jumper to turn right of 90 degrees.
(2)If the location in front of it is a rock, and the location two cells in front alos contains a rock, Can the jumper jump 3 cells away?
In this case, we designed the answer no! The jumper can and only can jump for 2 cells.
这里写图片描述
这里写图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值