找回密码
 立即注册

QQ登录

只需一步,快速开始

136204240

中级会员

13

主题

33

帖子

622

积分

中级会员

积分
622

活字格认证

136204240
中级会员   /  发表于:2012-3-14 21:51  /   查看:5999  /  回复:5
如果返回的建筑物不是正方形的,测试工具就挂了。
比如地图是:
25 25
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU

建筑物是
1
5 2
House
..XXX
..XX.

返回 Operation(1, 0, new Point(0, 0))就挂了。返回其他非正方形建筑也会挂。调了半天才找出来,我了个去。

5 个回复

倒序浏览
136204240
中级会员   /  发表于:2012-3-14 21:55:00
沙发
还有一个bug
如果地图是

25 25
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUU

建筑物是
1
4 4
House
....
.X..
.XX.
....

每次返回return new Operation(1, 0, new Point(0, 0));测试工具也挂了。
也就是说,返回以前用过的建筑物不会报错。
回复 使用道具 举报
Iver
版主   /  发表于:2012-3-15 09:46:00
板凳

回复 2# 136204240 的帖子

你好,136204240:
你说的第一个问题,当建筑宽、高不一致的时候导致程序崩溃的问题,已经在1.2版中修复。
你说的第二个问题,我在当前版本中没有重现。当建筑列表中唯一一个建筑被使用之后,工具会结束当前比赛,在你的环境下不是这样的结果么?
请下载新版本的工具使用,看是否还会出现同样的问题,如果问题依旧无法解决,请再详细一点地说明你的环境,你使用的算法和你调试的一些细节好么?回帖说明不方便的话可以发送邮件给我,谢谢。
回复 使用道具 举报
Iver
版主   /  发表于:2012-3-15 09:50:00
地板

回复 2# 136204240 的帖子

你好,136204240:
我刚想到一种可能性,你说的第二个问题,如果你是一次启动工具进行多次的模拟竞赛,那么即使建筑列表中只有一个建筑,它的ID也可能不为1,那么,如果你返回的操作中指定ID为1,这就是一个错误的操作,在当前版本中不会有提示,只会扣分。
今天将发布的新版本中会添加错误放置的提示,请保持关注!
另:有关工具使用过程中遇到的问题,可以到工具问题反馈贴中集中反映,这样我在搜集信息的时候会方便一些,谢谢!
回复 使用道具 举报
136204240
中级会员   /  发表于:2012-3-15 13:42:00
5#

回复 4# Iver 的帖子

好的。
回复 使用道具 举报
136204240
中级会员   /  发表于:2012-3-15 13:50:00
6#

回复 4# Iver 的帖子

你好,问题已经解决了,我前面说的两个问题在新的测试工具里都没有问题。
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部