- 最后登录
- 2025-4-17
- 在线时间
- 58 小时
- 阅读权限
- 10
- 注册时间
- 2010-4-18
- 积分
- 101
- 帖子
- 18
- 精华
- 0
- UID
- 1256966
- 性别
- 男
- 兴趣爱好
- 推箱

- 积分
- 101
- 帖子
- 18
- 精华
- 0
- UID
- 1256966
- 性别
- 男
- 兴趣爱好
- 推箱
|
Thanks for bringing these 0-space levels to my attention — they’re incredibly challenging!
I've been experimenting with adapting the JSoko solver to better handle this type of level (focusing only on the b-type ones), but so far it can only solve the smaller versions.
Do you have any tips or techniques for solving b-type levels? I'd love to understand the kind of reasoning or strategy that works best with these puzzles.
Also, huge thanks for writing and sharing the generator! It's always exciting to see how level generators work. Reminds me a bit of this site:
https://www.linusakesson.net/games/autosokoban — each time you visit, a new Sokoban puzzle appears, and the randomness sometimes leads to some surprisingly clever layouts.
One more question about your code:
In the ZeroSpaceLevelGenerator file, I noticed you're removing the direction info from the solution string:- dt = dt.replace("-U,", ",");
- dt = dt.replace("-D,", ",");
- dt = dt.replace("-L,", ",");
- dt = dt.replace("-R,", ",");
- dt = dt.replace("-U)", ")");
- dt = dt.replace("-D)", ")");
- dt = dt.replace("-L)", ")");
- dt = dt.replace("-R)", ")");
复制代码 That seems to make the solution incompatible with SokobanTool (run via java -cp .\sokoban.jar com.c.SokobanTool), since it expects direction data to be preserved.
Is there a specific reason for removing those directions? Just curious about your thinking there.
Thanks again — really impressive work overall!
I don't know if you understand my english text, hence, here is a translation:
感谢你让我注意到这些 0 空位关卡 —— 它们真的非常具有挑战性!
我一直在尝试调整 JSoko 的求解器,使其能更好地处理这种类型的关卡(目前只专注于 b 型关卡),但目前它只能解出一些尺寸较小的版本。
你有没有什么关于如何解决 b 型关卡的技巧或方法?我很想了解在这种谜题中,哪种思路或策略最有效。
另外,非常感谢你编写并分享了关卡生成器!看到这些关卡生成器是如何工作的总是很有趣。这让我想起了这个网站:
https://www.linusakesson.net/games/autosokoban —— 每次访问都会生成一个新的推箱子关卡,而且这些随机生成的关卡有时候会意外地非常巧妙。
还有一个关于你代码的问题:
在 ZeroSpaceLevelGenerator 文件中,我注意到你删除了解析出的路径方向信息:- dt = dt.replace("-U,", ",");
- dt = dt.replace("-D,", ",");
- dt = dt.replace("-L,", ",");
- dt = dt.replace("-R,", ",");
- dt = dt.replace("-U)", ")");
- dt = dt.replace("-D)", ")");
- dt = dt.replace("-L)", ")");
- dt = dt.replace("-R)", ")");
复制代码 这似乎导致这个解法文件无法被 SokobanTool 解析(使用命令 java -cp .\sokoban.jar com.c.SokobanTool 运行),因为它需要保留方向信息。
请问你这样处理的原因是什么呢?我很好奇你当时的考虑。
再次感谢你所做的一切工作,真的很令人佩服! |
|