推箱子问题求解程序C#源代码

上传者: emgg20 | 上传时间: 2025-05-07 08:25:56 | 文件大小: 31KB | 文件类型: RAR
公司里流行玩推箱子游戏,总共15关,可大家都被第11关难住了,一时没人能解,我写了个专门求解该问题的程序,只要把棋盘(0代表空闲,1代表阻碍物,2代表目标,3代表箱子on目标,4代表箱子,5代表worker)输入到txt文件中,修改加载的文件的代码位置,运行程序,不久就能给出计算结果,并以字符形式给出箱子的移动步骤。该程序纯属个人兴趣所为,现将其源代码公开,算是给同行们抛砖引玉吧

文件下载

资源详情

[{"title":"( 32 个子文件 31KB ) 推箱子问题求解程序C#源代码","children":[{"title":"SokobanConsole","children":[{"title":"SokobanConsole.suo <span style='color:#111;'> 14.50KB </span>","children":null,"spread":false},{"title":"SokobanConsole","children":[{"title":"SokobanConsole.csproj.user <span style='color:#111;'> 231B </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"Debug","children":[{"title":"worker.txt <span style='color:#111;'> 174B </span>","children":null,"spread":false},{"title":"total1.txt <span style='color:#111;'> 174B </span>","children":null,"spread":false},{"title":"goal.txt <span style='color:#111;'> 174B </span>","children":null,"spread":false},{"title":"total9.txt <span style='color:#111;'> 174B </span>","children":null,"spread":false},{"title":"total13.txt <span style='color:#111;'> 174B </span>","children":null,"spread":false},{"title":"total6.txt <span style='color:#111;'> 174B </span>","children":null,"spread":false},{"title":"total14.txt <span style='color:#111;'> 174B </span>","children":null,"spread":false},{"title":"map.txt <span style='color:#111;'> 174B </span>","children":null,"spread":false},{"title":"boxes.txt <span style='color:#111;'> 174B </span>","children":null,"spread":false},{"title":"result11.txt <span style='color:#111;'> 10.32KB </span>","children":null,"spread":false},{"title":"total10.txt <span style='color:#111;'> 174B </span>","children":null,"spread":false},{"title":"total7.txt <span style='color:#111;'> 174B </span>","children":null,"spread":false},{"title":"total5.txt <span style='color:#111;'> 174B </span>","children":null,"spread":false},{"title":"SokobanConsole.pdb <span style='color:#111;'> 21.50KB </span>","children":null,"spread":false},{"title":"total12.txt <span style='color:#111;'> 174B </span>","children":null,"spread":false},{"title":"total8.txt <span style='color:#111;'> 174B </span>","children":null,"spread":false},{"title":"total4.txt <span style='color:#111;'> 174B </span>","children":null,"spread":false},{"title":"total11.txt <span style='color:#111;'> 174B </span>","children":null,"spread":false},{"title":"total2.txt <span style='color:#111;'> 174B </span>","children":null,"spread":false},{"title":"SokobanConsole.exe <span style='color:#111;'> 20.00KB </span>","children":null,"spread":false},{"title":"SokobanConsole.vshost.exe <span style='color:#111;'> 5.50KB </span>","children":null,"spread":false},{"title":"total3.txt <span style='color:#111;'> 174B </span>","children":null,"spread":false},{"title":"total15.txt <span style='color:#111;'> 174B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"Program.cs <span style='color:#111;'> 11.91KB </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"SokobanConsole.csproj.FileListAbsolute.txt <span style='color:#111;'> 1.73KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"TempPE","children":null,"spread":false},{"title":"SokobanConsole.pdb <span style='color:#111;'> 21.50KB </span>","children":null,"spread":false},{"title":"Refactor","children":null,"spread":false},{"title":"SokobanConsole.exe <span style='color:#111;'> 20.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"SokobanConsole.csproj <span style='color:#111;'> 1.92KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"SokobanConsole.sln <span style='color:#111;'> 931B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明