[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖

[游戏娱乐] 批处理版推箱子

本帖最后由 netbenton 于 2011-8-4 00:43 编辑

发贴前先引用他人一句话:
记得几年前,《推箱子》在PC机上刮起了一股不小的益智类游戏的旋风,现在许多资深玩家也都对《推箱子》赞不绝口,可见有深度的益智类游戏是非常受大家欢迎的。

推箱子游戏出现在计算机中最早起源于1994年台湾省李果兆开发的仓库世家,又名仓库番,箱子只可以推, 不可以拉, 而且一次只能推动一个,胜利条件就是把所有的箱子都推到目的地。

推箱子游戏是一种老少皆宜的益智游戏,既可以开发青少年学生的智力,又可以防止老年痴呆症,全家一起攻关还可以促进家庭和睦,何乐而不为?


虽然这种游戏已经很多,但是批处理的玩法是别有情趣哦!
看!批处理版推箱子游戏登场!!!!
砖块快点扔过来。。。呵呵!!

2009-08-27进一步精简代码,并做好了10关,
大家都来试试能不能全部通过。
2009-08-29再次改进,摆脱了choice.exe 的依赖,只有一个文件,增加已经通过的关记录,请看代码:

2009-09-13 更新
增加了几关其中有一关为超大地图(cn-dos)一网友提供,
增强了对大地图的支持(指一屏以外的)

2010-05-28 更新
引入了一个字符保存4个记录信息的方法,目前用只第一行文本可支持300关做记录
  1. @goto :begin @1@0000000000000000000000000000000000000000000此为用户记录保存行,请不要删移!
  2. e 100 cd 16 86 c4 b4 02 cd 10 b4 4C CD 21
  3. g
  4. :begin
  5. @echo off
  6. pushd "%~dp0"
  7. chcp 437 >nul
  8. graftabl 936 >nul
  9. color 2f
  10. set "a=i83=10;i1=7;i72=1;i80=3;i75=2;i77=4;i73=8;i81=9;i57=5;i28=6;c1=n-;c2=m-;c3=n+;c4=m+;∷=^^!r!n!.!m!^^!-∷;☆=^^!r!n!.!m!^^!-☆;▓∷=▓-∷;▓☆=★-∷;★∷=▓-☆;★☆=★-☆;原=∷
  11. set %a:;=&set %
  12. setlocal enabledelayedexpansion
  13. for /f "tokens=2,3 delims=囧" %%a in (%~nx0) do (
  14.   set var=!var!%%a
  15.   if "%%b" equ "" (
  16.     set lev!n!=!var!
  17.     set/a n+=1
  18.     set var=
  19.   )
  20. )
  21. set a=a=■;b=∷;c=▓;d=☆;e=★;f=大;tc=abcdefg;tn=1234567890;g=;/a end=n,z=8180,x=0,n=0,m=0;$a= 
  22. set cr=^
  23. &set %a:;=&set %
  24. set/p ygx=< %~nx0 >nul
  25. for /f "tokens=2,3 delims=@" %%a in ("!ygx!") do (
  26. set lev=%%a
  27. set ygx=%%b
  28. )
  29. set hhoo=@f1111@e1110@d1101@c1100@b1011@a1010@91001@81000@70111@60110@50101@40100@30011@20010@10001@00000@
  30. ::定义数据,用于16进制和二进制的互换
  31. for /l %%a in (0,1,40) do (
  32. for %%b in ("!ygx:~%%a,1!") do (
  33.   set ygn=!hhoo:*@%%~b=!
  34.   set yg=!yg!!ygn:~,4!
  35. ) )
  36. set ygx=
  37. ::16进制转二进制
  38. set/a n0=0,n9=17,m0=-1
  39. set yg=0!yg!
  40. goto :skend
  41. :restart
  42. endlocal&set lev=%lev%&set yg=%yg%
  43. :skend
  44. cls&setlocal enabledelayedexpansion
  45. set str=!lev%lev%!
  46. for /l %%a in (1,1,14) do (set/a "y=(z-x)/2+x"
  47.     for %%b in (!y!) do if "!str:~%%b,1!" equ "" (set/a z=y) else (set/a x=y)
  48. )
  49. for /l %%a in (0,1,!x!) do (set/a t=%%a+1
  50. for %%b in (!t!) do (
  51.     for /f "tokens=1-3 delims=-" %%1 in ("!str:~%%a,1!-!str:~%%b,1!-!n!") do (
  52.         if "!tc:%%1=!" neq "!tc!" (
  53.             if "!tn:%%2=!" neq "!tn!" (set k=%%2) else (set k=1)
  54.             for /l %%k in (1,1,!k!) do (set r!n!.!m!=!%%1!&set rr!%%1!=!n!.!m!
  55.               if "!%%1!" equ "☆" set "ke=!ke!^!r!n!.!m!^!"
  56.               set /a m+=1
  57.             )
  58.         ) else (if "%%1" equ " " set /a n+=1,m=0)
  59.     )
  60. ))
  61. setlocal enabledelayedexpansion
  62. for /l %%a in (1,1,!n!) do set lev%%a=
  63. set /a n=!rr大:.=,m=!
  64. set ji=%ke%&set ji=!ji:☆=★!
  65. if "!yg:~%lev%,1!" equ "1" (set cyg=☆已过☆) else set cyg=
  66. title   批处理推箱子  第%lev%关   !cyg!
  67. :loop
  68. (
  69. if !n! geq !n9! set /a n0=n-17,n9=n
  70. if !n0! lss 0 set /a n0=0,n9=17
  71. if !n! lss !n0! set /a n0=n,n9=n+17
  72. if !m! geq !m9! set /a m0=m-34,m9=m
  73. if !m0! lss 0 set /a m0=0,m9=34
  74. if !m! lss !m0! set /a m0=m,m9=m+34
  75. set/a en0=n0-2,em0=m0-2,en9=n9+2,em9=m9+2
  76. if "!m0!!m9!" neq "%m0%%m9%" (
  77.   set ebs=
  78.   for /l %%b in (!em0!,1,!em9!) do (
  79.      set "ebs=!ebs!^!@%%b^!^^^!$a^!@%%b^!^^^!
  80.   )
  81. )
  82. )
  83. for /l %%a in (!en0!,1,!en9!) do (
  84.     for %%c in ("!ebs:@=r%%a.!") do (
  85.         for %%d in ("%%~c") do (set ebuf=!ebuf!%%~d!cr!)
  86.     )
  87. )
  88. if "%ke%" equ "!ji!" cls&echo;!ebuf! &call :dtxs  恭喜您通过了%lev%关!! 1300&pause&goto me9
  89. set ebuf=!ebuf!方向键移动,空格后退一步,回车重来, Pu上一关,Pd下一关,Esc退出,Del删除记录。玩法:用“大”把“▓”全部推到“☆”内为过关
  90. set/p=!ebuf!<nul
  91. set ebuf=
  92. debug <%~nx0 >nul
  93. set in=!i%errorlevel%!
  94. if !in! equ 0 goto :loop
  95. if !in! gtr 4 goto :me%in%
  96. set/a sm=m,sn=n,!c%in%!=1,bm=m,bn=n,!c%in%!=1
  97. for /f "tokens=1,2" %%a in ("!r%bn%.%bm%! !r%bn%.%bm%!!r%n%.%m%!") do (
  98.     for %%c in ("!%%a!!%%b!") do (
  99.         for /f "tokens=1,2 delims=-" %%1 in (%%c) do (
  100.             if "!%%b!" neq "" set save=r%sn%.%sm%=!r%sn%.%sm%!^&set r%bn%.%bm%=!r%bn%.%bm%!^&set r%n%.%m%=!r%n%.%m%!^&set 原=%原%^&set/a m=%sm%,n=%sn%
  101.             set r%sn%.%sm%=!原!&set r%bn%.%bm%=大&set r%n%.%m%=%%1&set/a m=bm,n=bn&set 原=%%2
  102.             goto :loop
  103.         )
  104.     set/a m=sm,n=sn
  105.     )
  106. )
  107. goto :loop
  108. :me5
  109. if defined save (
  110.     set r%n%.%m%=%原%
  111.     set %save%
  112.     set save=
  113. )
  114. goto :loop
  115. :me6
  116. endlocal&goto :restart
  117. :me7
  118. for /l %%a in (1,4,161) do (
  119. for %%b in ("!yg:~%%a,4!") do (
  120.   for /f "delims=#" %%c in ("!hhoo:%%~b@=#!") do set ygn=%%~c
  121.   set ygq=!ygq!!ygn:~-1!
  122. ) )
  123. ::2进制转16进制
  124. set a=a 10d`db "@%lev%@!ygq!"``w`q
  125. (echo %a:`=&echo;%) |debug %~nx0 >nul
  126. exit /b
  127. ::保存记录并退出
  128. :me8
  129. set/a lev-=2
  130. :me9
  131. set/a lev+=1
  132. if !lev! equ !end! set lev=1
  133. if !lev! equ 0 set/a lev=end-1
  134. set/a var=lev-1
  135. endlocal&(if %in% leq 4 set yg=!yg:~,%var%!1!yg:~%lev%!)&set lev=%lev%&goto :restart
  136. :me10
  137. endlocal&set yg= &set lev=1
  138. for /l %%a in (1,1,41) do set yg=!yg!0000
  139. goto :restart
  140. ::动态显示字符串
  141. :dtxs 字符串 速率
  142. setlocal enabledelayedexpansion
  143. set "say=%1 "
  144. for /l %%a in (1,1,40) do if "!say:~%%a!" neq "" set n=%%a
  145. set /a m=76-n
  146. for /l %%a in (1,1,80) do (set spacs=!spacs! &set tgs=!tgs!)
  147. for /l %%b in (1,1,!n!) do (
  148. for /l %%a in (70,-2,1) do (
  149.   set sayq=!say:~,%%b!!spacs:~,%%a!!say:~%%b,1!
  150.   set /p=!tgs!!sayq:~,%m%!  <nul
  151.   for /l %%c in (1,%%a,%2) do ver >nul
  152. ))
  153. goto :eof
  154. :囧a9a ab8a ab4d2fba ab2a2b4a ab2a4b2a aba2b5a ab4c2b2a ab8a ab8a a9a
  155. :囧a8g ab3ab2a abdbcdba a2ca2b2a ab2a2ca2 abdfb3a ab2ab3a a8
  156. :囧g4a7 g3a2b2abfa g3ab3ab2a g3acbcbcba g3abca2b2a ga3bcbaba2 gad5b2a ga9
  157. :囧g3a6 ga3b4a a2dbca2ba2 ad2cbcb2fa ad2bcbcba2 a5b3a g4a5
  158. :囧a6 abfb2a abcaba abcb2a abcba2 a3ba4 gab2ab2a gad3b2a gab5a ga7
  159. :囧a9a3 ab9ba aba7bfa2 abab9a abab2cb3ab2a abc2ba5b2a a3b2agabd3a g2a4gab4a g7a6
  160. :囧ga9 gab2a2b3a gab3cb3a gacba3bca gabad3aba a2bad3aba2 abcb2cb2cba ab5ab2fa a9a2
  161. :囧g2a5 g2ab3a a3cdca5 ab3dbcb3a aba2ca2bfba ab3dba5 a3bdba g2ab3a g2a5
  162. :囧ga4g2a5 a2b2ag2ab3a abcba4cb2a ab2cd4bcba a2b4abfba2 ga9a
  163. :囧a9a ad2b6a ad2cb2ab2a ab2aca2ba2 abcb5a a5baba g2abcbfba g2ab5a g2a7
  164. :囧a6ga5 ab4a3b3a abc2b5afa abcbad3b3a ab3a8 a5
  165. :囧ga5 gab3a a2bcbag2a4 ab4a4b2a abcb6cda ab3a5cda a5g3abfa g8a4
  166. :囧g7a5 g7adb2a g7adaba a8daba abfbcbcb2cba abababab2a3 ab8a a9a
  167. :囧a5 ab3a4 abababda ab4cba3 a3bacdb2a ab3afb3a ababa6 ab3a a5
  168. :囧a9a4 abdb2db2dbdba5 ab9b6a5 abdabda2badb9a aba2b2a9a2b3a abcbcb9b6a abcb3cbcba7b3a ab3cb2a4g5a5 a4bcba g3abfba g3a5
  169. :囧ga4g5 gab2a a2dfa abdca6 abc2bcb2a2 abd2b4a2 a4b2a4 g3a4
  170. :囧g5a4g a6b2a abcb2cb2a abab2daba2 ab2dbadfba a2cabdcb2a gab3a5 ga5
  171. :囧g5a6g g5ab4a ga5ba2ba2 gabcb2cb2cba a2badada2dba abcb2cda2dba ab2d2bcfbca2 a8b2a g7a4
  172. :囧a9g2 ab7a ab2cbcbca a2baca2ba gabd2bd2a2 ga2d2bd2ba g2aba2caba2 g2acbcbcb2a g2ab6fa g2a9
  173. :囧a5g7 ab3a8 abfdbdbdbdba a2bababababa gabcbcbcbcba ga6b2a3 g6a4
  174. :囧g4a4g a5b2a abcb3ca ab2dadba a2ba3ba2 gabdadb2a gacbfbcba gab2a5 ga4
  175. :囧g2a8g a3b2fb3a ab3cbcb2a ab2cbcbcba a5ca5 g3a2bdbd2a g3ab2dab2a g3abdb3da g3a4b2a2 g6a4
  176. :囧a9g ab2fb4a ac7a ad3ad3a ad7a ac3bc3a ab7a a9
  177. :囧a9ag ab8a2 abcacacacfa adbdcd3cda adbdcd3cda abcacacaca2 ab8a a9a
  178. :囧a2 a9a ab2ab2ad2a afbcbcbdba ab3cb2cba abababadba a9a
  179. :囧g9g7a4g9g2 g5a5g3a4b2a a4gab3a6b4a9a ab2a3bab8ab9b2a abcd5ababcbabad2ab4c2aba ab2a2d3cb2abcabad2b2a2b3cba3 ab4ca2cabacbcbad2ab2a2cabcb2a abcacb3cb2abcb2ad2b3ab2cbcb2a a2b3a3cabad3a2d2ab2abcacb3a ga2ba2bab3ad2a3bdb3abcbcba3 a3bab2a9ab2ab2ab3a4 ab7a2b6ab2ab4a6 abcacacbab3cbcb2a9ab2a adcdb2cbab2cbcbcb8cb3ca ad3a2b2a5ca9b2dadba a4b3a6bdbd2ab3a2ba3ba2 g3ab2db2cbab2dab2adaca2bdadb2a g3a3d2bcbabdb3dab4acb3cba g3a3c2bcbaba2b2a2dacbab2a5 ga3bdcdbab3a6b3a2ba2 gab2cd3ca5g4adacab2a gab3a2dcbag6a2b5a2 ga6b3a囧@
  180. :囧g6abdaca3 g6a5g6ab4a g9g8afba3 g9g8a4
  181. :囧g9g7a4 g5a5g3a4b2a a4gab3a6b4a9a ab2a3bab8ab9b2a abcd5ababcbabad2ab4c2aba ab2a2d3cb2abcabad2b2a2b3cba3 ab4ca2cabacbcbad2ab2a2cabcb2a abcacb3cb2abcb2ad2b3ab2cbcb2a a2b3a3cabad3a2d2ab2abcacb3a ga2ba2bab3ad2a3bdb3abcbcba3 a3bab2a9ab2ab2ab3a4 ab7a2b6ab2ab4a6 abcacacbab3cbcb2a9ab2a adcdb2cbab2cbcbcb8cb3ca ad3a2b2a5ca9b2dadba a4b3a6bdbd2ab3a2ba3ba2 g3ab2db2cbab2dab2adaca2bdadb2a g3a3d2bcbabdb3dab4acb3cba g3a3c2bcbaba2b2a2dacbab2a5 ga3bdcdbab3a6b3a2ba2 gab2cd3ca5g4adacab2a gab3a2dcbag6a2b5a2 ga6b3ag6ab囧@
  182. :囧daca3 g6a5g6ab4a g9g8afba3 g9g8aba2g9g9g9g9g3a7 g9g8ab2ag9g9g9g9g3adbdbda g9g8ab2ag9g9g9g9g3ab5a g9g8ab2ag9g9g9g9g3adbdbda g9g8ab2ag9g9g9g9g3ab5a g9g8ab2ag9g9g9g9g3adb4a g9g8ab2ag9g9g9g9g3a4ba2 g9g8ab2ag9g9g9g9g6aba g9g8ab2ag9g9g9g9g6aba g9g8ab2ag9g9g9g9g6aba g9g8ab2ag9g9g9g9g6aba g9g8ab2ag9g9g9g9g6aba g9g8ab2ag9g9g9g9g6aba g9g8ab2ag9g9g9g9g6aba g9g8ab2ag9g9g9g9g6aba g9g8ab2ag9g9g9g9g6aba g9g8ab2ag9g9g9g9g6aba g9g8ab2ag9g9g9g9g6aba g9g8ab2ag9g9g2a7g9g6aba g9g8ab2ag9g9g2ab5ag9g6aba g9g8ab2ag9g9g2囧@
  183. :囧ab5ag9g6aba g9g8ab2ag9g9g2acbcbcag9g6aba g9g8ab2ag9g9g2ab5ag9g6aba g9g8ab2ag9g9g2acbcbcag9g6aba g9g8ab2a9a9a4b5a9a8ba g9g8ab4cb9b9b9b9b6a g9g8ab9b9b9b9b9b2a g9g8a9a9a9a9a9a4  
复制代码
1

评分人数

    • cutebe: 强。也很好玩技术 + 1

win10
32位,64位
不闪屏。

要用到三方 mk.exe
  1. :#a
  2. @goto :#b%goto%
  3. 5@ 4 3 2 1       此行为记录数据行,请不要删移!  5 6 7 8 9 10 11 14 13            
  4. :#b
  5. @echo off
  6. pushd "%~dp0"
  7. chcp 936 >nul
  8. mode con: cols=78 lines=25
  9. for /F "tokens=1 delims=#" %%a in ('"prompt #$E# & echo on & for %%b in (1) do rem"') do set "esc=%%a"
  10. set #=%esc%[
  11. echo;%#%?25l
  12. set "a=i1038=1;i1040=3;i1037=2;i1039=4;i1033=8;i1034=9;i13232=5;i11313=6;i12727=7;i1046=10;c1=n-;c2=m-;c3=n+;c4=m+;∷=^^!r!n!.!m!^^!-∷;☆=^^!r!n!.!m!^^!-☆;□∷=□-∷;□☆=★-∷;★∷=□-☆;★☆=★-☆;原=∷
  13. set %a:;=&set %
  14. setlocal enabledelayedexpansion
  15. for /f "tokens=2,3 delims=囧" %%a in (%~nx0) do (
  16.   set var=!var!%%a
  17.   if "%%b" equ "" (
  18.     set lev!n!=!var!
  19.     set/a n+=1
  20.     set var=
  21.   )
  22. )
  23. set a=a=■;b=∷;c=□;d=☆;e=★;f=♀;tc=abcdefg;tn=1234567890;g=;/a end=n,z=8180,x=0,n=0,m=0;$a= 
  24. set cr=^
  25. &set %a:;=&set %
  26. (
  27. set/p yg=
  28. set/p yg=
  29. set/p yg=
  30. )< "%~nx0" >nul
  31. set lev=%yg:@=&rem %
  32. set yg= !yg:* =!
  33. set/a n0=0,n9=17,m0=-1
  34. goto :skend
  35. :restart
  36. endlocal&set lev=%lev%&set yg=%yg%
  37. :skend
  38. cls&setlocal enabledelayedexpansion
  39. set str=!lev%lev%!
  40. for /l %%a in (1,1,14) do (set/a "y=(z-x)/2+x"
  41.     for %%b in (!y!) do if "!str:~%%b,1!" equ "" (set/a z=y) else (set/a x=y)
  42. )
  43. for /l %%a in (0,1,!x!) do (set/a t=%%a+1
  44. for %%b in (!t!) do (
  45.     for /f "tokens=1-3 delims=-" %%1 in ("!str:~%%a,1!-!str:~%%b,1!-!n!") do (
  46.         if "!tc:%%1=!" neq "!tc!" (
  47.             if "!tn:%%2=!" neq "!tn!" (set k=%%2) else (set k=1)
  48.             for /l %%k in (1,1,!k!) do (set r!n!.!m!=!%%1!&set rr!%%1!=!n!.!m!
  49.               if "!%%1!" equ "☆" set "ke=!ke!^!r!n!.!m!^!"
  50.               set /a m+=1
  51.             )
  52.         ) else (if "%%1" equ " " set /a n+=1,m=0)
  53.     )
  54. ))
  55. setlocal enabledelayedexpansion
  56. for /l %%a in (1,1,!n!) do set lev%%a=
  57. set /a n=!rr♀:.=,m=!
  58. set ji=%ke%&set ji=!ji:☆=★!
  59. if "!yg: %lev% =!" neq "!yg!" (set cyg=☆已过☆) else set cyg=
  60. title   批处理推箱子  第%lev%关   !cyg!
  61. :loop
  62. (
  63. if !n! geq !n9! set /a n0=n-17,n9=n
  64. if !n0! lss 0 set /a n0=0,n9=17
  65. if !n! lss !n0! set /a n0=n,n9=n+17
  66. if !m! geq !m9! set /a m0=m-33,m9=m
  67. if !m0! lss 0 set /a m0=0,m9=33
  68. if !m! lss !m0! set /a m0=m,m9=m+33
  69. set/a en0=n0-2,em0=m0-2,en9=n9+2,em9=m9+2
  70. if "!m0!!m9!" neq "%m0%%m9%" (
  71.   set ebs=
  72.   for /l %%b in (!em0!,1,!em9!) do (
  73.      set "ebs=!ebs!^!@%%b^!^^^!$a^!@%%b^!^^^!
  74.   )
  75. )
  76. )
  77. for /l %%a in (!en0!,1,!en9!) do (
  78.     for %%c in ("!ebs:@=r%%a.!") do (
  79.         for %%d in ("%%~c") do (set ebuf=!ebuf!%%~d!cr!)
  80.     )
  81. )
  82. if "%ke%" equ "!ji!" cls&echo !ebuf!   恭喜你过关了!&pause&goto :me9
  83. set ebuf=!ebuf!方向键移动,空格后退一步,回车重来, Pu上一关,Pd下一关,Esc退出,Del删除记录。玩法:用“♀”把“□”全部推到“☆”内为过关
  84. set/p=%#%1;1H!ebuf!<nul
  85. set ebuf=
  86. set in=0
  87. for /f "tokens=1-5" %%1 in ('mk.exe /w /c 5000') do set/a "in=!i%%1%%2%%3!"
  88. if !in! equ 0 goto :loop
  89. if !in! gtr 4 goto :me%in%
  90. set/a sm=m,sn=n,!c%in%!=1,bm=m,bn=n,!c%in%!=1
  91. for /f "tokens=1,2" %%a in ("!r%bn%.%bm%! !r%bn%.%bm%!!r%n%.%m%!") do (
  92.     for %%c in ("!%%a!!%%b!") do (
  93.         for /f "tokens=1,2 delims=-" %%1 in (%%c) do (
  94.             if "!%%b!" neq "" set save=r%sn%.%sm%=!r%sn%.%sm%!^&set r%bn%.%bm%=!r%bn%.%bm%!^&set r%n%.%m%=!r%n%.%m%!^&set 原=%原%^&set/a m=%sm%,n=%sn%
  95.             set r%sn%.%sm%=!原!&set r%bn%.%bm%=♀&set r%n%.%m%=%%1&set/a m=bm,n=bn&set 原=%%2
  96.             goto :loop
  97.         )
  98.     set/a m=sm,n=sn
  99.     )
  100. )
  101. goto :loop
  102. :me5
  103. if defined save (
  104.     set r%n%.%m%=%原%
  105.     set %save%
  106.     set save=
  107. )
  108. goto :loop
  109. :me6
  110. endlocal&goto :restart
  111. :me7
  112. (
  113. echo;:#a
  114. echo;@goto :#b%%goto%%
  115. echo;%lev%@%yg%
  116. more +3 "%~nx0"
  117. )>"%~n0.tmp"
  118. set goto=_OK
  119. del "%~nx0"&ren "%~n0.tmp" "%~nx0"&goto :#a
  120. 修改批处理本身,需避免出错
  121. :#b_OK
  122. exit /b
  123. :me8
  124. set/a lev-=2
  125. :me9
  126. set/a lev+=1
  127. if !lev! equ !end! set lev=1
  128. if !lev! equ 0 set/a lev=end-1
  129. endlocal&(if %in% leq 4 for %%a in (!lev!) do set "yg= !lev!!yg: %%~a = !")&set lev=%lev%&goto :restart
  130. :me10
  131. endlocal&set yg=&set lev=1
  132. for /l %%a in (1,1,52) do set yg=!yg!
  133. goto :restart
  134. :囧a9a ab8a ab4d2fba ab2a2b4a ab2a4b2a aba2b5a ab4c2b2a ab8a ab8a a9a
  135. :囧a8g ab3ab2a abdbcdba a2ca2b2a ab2a2ca2 abdfb3a ab2ab3a a8
  136. :囧a9a4 abdb2db2dbdba5 ab9b6a5 abdabda2badb9a aba2b2a9a2b3a abcbcb9b6a abcb3cbcba7b3a ab3cb2a4g5a5 a4bcba g3abfba g3a5
  137. :囧ga4g5 gab2a a2dfa abdca6 abc2bcb2a2 abd2b4a2 a4b2a4 g3a4
  138. :囧g5a4g a6b2a abcb2cb2a abab2daba2 ab2dbadfba a2cabdcb2a gab3a5 ga5
  139. :囧g5a6g g5ab4a ga5ba2ba2 gabcb2cb2cba a2badada2dba abcb2cda2dba ab2d2bcfbca2 a8b2a g7a4
  140. :囧a9g2 ab7a ab2cbcbca a2baca2ba gabd2bd2a2 ga2d2bd2ba g2aba2caba2 g2acbcbcb2a g2ab6fa g2a9
  141. :囧a5g7 ab3a8 abfdbdbdbdba a2bababababa gabcbcbcbcba ga6b2a3 g6a4
  142. :囧g4a4g a5b2a abcb3ca ab2dadba a2ba3ba2 gabdadb2a gacbfbcba gab2a5 ga4
  143. :囧g2a8g a3b2fb3a ab3cbcb2a ab2cbcbcba a5ca5 g3a2bdbd2a g3ab2dab2a g3abdb3da g3a4b2a2 g6a4
  144. :囧a9g ab2fb4a ac7a ad3ad3a ad7a ac3bc3a ab7a a9
  145. :囧a9ag ab8a2 abcacacacfa adbdcd3cda adbdcd3cda abcacacaca2 ab8a a9a
  146. :囧a2 a9a ab2ab2ad2a afbcbcbdba ab3cb2cba abababadba a9a
  147. :囧g9g7a4g9g2 g5a5g3a4b2a a4gab3a6b4a9a ab2a3bab8ab9b2a abcd5ababcbabad2ab4c2aba ab2a2d3cb2abcabad2b2a2b3cba3 ab4ca2cabacbcbad2ab2a2cabcb2a abcacb3cb2abcb2ad2b3ab2cbcb2a a2b3a3cabad3a2d2ab2abcacb3a ga2ba2bab3ad2a3bdb3abcbcba3 a3bab2a9ab2ab2ab3a4 ab7a2b6ab2ab4a6 abcacacbab3cbcb2a9ab2a adcdb2cbab2cbcbcb8cb3ca ad3a2b2a5ca9b2dadba a4b3a6bdbd2ab3a2ba3ba2 g3ab2db2cbab2dab2adaca2bdadb2a g3a3d2bcbabdb3dab4acb3cba g3a3c2bcbaba2b2a2dacbab2a5 ga3bdcdbab3a6b3a2ba2 gab2cd3ca5g4adacab2a gab3a2dcbag6a2b5a2 ga6b3a囧@
  148. :囧g6abdaca3 g6a5g6ab4a g9g8afba3 g9g8a4
  149. :囧g9g7a4 g5a5g3a4b2a a4gab3a6b4a9a ab2a3bab8ab9b2a abcd5ababcbabad2ab4c2aba ab2a2d3cb2abcabad2b2a2b3cba3 ab4ca2cabacbcbad2ab2a2cabcb2a abcacb3cb2abcb2ad2b3ab2cbcb2a a2b3a3cabad3a2d2ab2abcacb3a ga2ba2bab3ad2a3bdb3abcbcba3 a3bab2a9ab2ab2ab3a4 ab7a2b6ab2ab4a6 abcacacbab3cbcb2a9ab2a adcdb2cbab2cbcbcb8cb3ca ad3a2b2a5ca9b2dadba a4b3a6bdbd2ab3a2ba3ba2 g3ab2db2cbab2dab2adaca2bdadb2a g3a3d2bcbabdb3dab4acb3cba g3a3c2bcbaba2b2a2dacbab2a5 ga3bdcdbab3a6b3a2ba2 gab2cd3ca5g4adacab2a gab3a2dcbag6a2b5a2 ga6b3ag6ab囧@
  150. :囧daca3 g6a5g6ab4a g9g8afba3 g9g8aba2g9g9g9g9g3a7 g9g8ab2ag9g9g9g9g3adbdbda g9g8ab2ag9g9g9g9g3ab5a g9g8ab2ag9g9g9g9g3adbdbda g9g8ab2ag9g9g9g9g3ab5a g9g8ab2ag9g9g9g9g3adb4a g9g8ab2ag9g9g9g9g3a4ba2 g9g8ab2ag9g9g9g9g6aba g9g8ab2ag9g9g9g9g6aba g9g8ab2ag9g9g9g9g6aba g9g8ab2ag9g9g9g9g6aba g9g8ab2ag9g9g9g9g6aba g9g8ab2ag9g9g9g9g6aba g9g8ab2ag9g9g9g9g6aba g9g8ab2ag9g9g9g9g6aba g9g8ab2ag9g9g9g9g6aba g9g8ab2ag9g9g9g9g6aba g9g8ab2ag9g9g9g9g6aba g9g8ab2ag9g9g2a7g9g6aba g9g8ab2ag9g9g2ab5ag9g6aba g9g8ab2ag9g9g2囧@
  151. :囧ab5ag9g6aba g9g8ab2ag9g9g2acbcbcag9g6aba g9g8ab2ag9g9g2ab5ag9g6aba g9g8ab2ag9g9g2acbcbcag9g6aba g9g8ab2a9a9a4b5a9a8ba g9g8ab4cb9b9b9b9b6a g9g8ab9b9b9b9b9b2a g9g8a9a9a9a9a9a4
复制代码

TOP

64位版本。
win 7
win 8
win xp

要用到三方,MK.exe
  1. :#a
  2. @goto :#b%goto%
  3. 5@ 4 3 2 1       此行为记录数据行,请不要删移!  5 6 7 8 9 10 11 14 13      
  4. :#b
  5. @echo off
  6. pushd "%~dp0"
  7. chcp 936 >nul
  8. mode con: cols=78 lines=25
  9. set "a=i1038=1;i1040=3;i1037=2;i1039=4;i1033=8;i1034=9;i13232=5;i11313=6;i12727=7;i1046=10;c1=n-;c2=m-;c3=n+;c4=m+;∷=^^!r!n!.!m!^^!-∷;☆=^^!r!n!.!m!^^!-☆;□∷=□-∷;□☆=★-∷;★∷=□-☆;★☆=★-☆;原=∷
  10. set %a:;=&set %
  11. setlocal enabledelayedexpansion
  12. for /f "tokens=2,3 delims=囧" %%a in (%~nx0) do (
  13.   set var=!var!%%a
  14.   if "%%b" equ "" (
  15.     set lev!n!=!var!
  16.     set/a n+=1
  17.     set var=
  18.   )
  19. )
  20. set a=a=■;b=∷;c=□;d=☆;e=★;f=♀;tc=abcdefg;tn=1234567890;g=;/a end=n,z=8180,x=0,n=0,m=0;$a= 
  21. set cr=^
  22. &set %a:;=&set %
  23. (
  24. set/p yg=
  25. set/p yg=
  26. set/p yg=
  27. )< "%~nx0" >nul
  28. set lev=%yg:@=&rem %
  29. set yg= !yg:* =!
  30. set/a n0=0,n9=17,m0=-1
  31. goto :skend
  32. :restart
  33. endlocal&set lev=%lev%&set yg=%yg%
  34. :skend
  35. cls&setlocal enabledelayedexpansion
  36. set str=!lev%lev%!
  37. for /l %%a in (1,1,14) do (set/a "y=(z-x)/2+x"
  38.     for %%b in (!y!) do if "!str:~%%b,1!" equ "" (set/a z=y) else (set/a x=y)
  39. )
  40. for /l %%a in (0,1,!x!) do (set/a t=%%a+1
  41. for %%b in (!t!) do (
  42.     for /f "tokens=1-3 delims=-" %%1 in ("!str:~%%a,1!-!str:~%%b,1!-!n!") do (
  43.         if "!tc:%%1=!" neq "!tc!" (
  44.             if "!tn:%%2=!" neq "!tn!" (set k=%%2) else (set k=1)
  45.             for /l %%k in (1,1,!k!) do (set r!n!.!m!=!%%1!&set rr!%%1!=!n!.!m!
  46.               if "!%%1!" equ "☆" set "ke=!ke!^!r!n!.!m!^!"
  47.               set /a m+=1
  48.             )
  49.         ) else (if "%%1" equ " " set /a n+=1,m=0)
  50.     )
  51. ))
  52. setlocal enabledelayedexpansion
  53. for /l %%a in (1,1,!n!) do set lev%%a=
  54. set /a n=!rr♀:.=,m=!
  55. set ji=%ke%&set ji=!ji:☆=★!
  56. if "!yg: %lev% =!" neq "!yg!" (set cyg=☆已过☆) else set cyg=
  57. title   批处理推箱子  第%lev%关   !cyg!
  58. :loop
  59. (
  60. if !n! geq !n9! set /a n0=n-17,n9=n
  61. if !n0! lss 0 set /a n0=0,n9=17
  62. if !n! lss !n0! set /a n0=n,n9=n+17
  63. if !m! geq !m9! set /a m0=m-33,m9=m
  64. if !m0! lss 0 set /a m0=0,m9=33
  65. if !m! lss !m0! set /a m0=m,m9=m+33
  66. set/a en0=n0-2,em0=m0-2,en9=n9+2,em9=m9+2
  67. if "!m0!!m9!" neq "%m0%%m9%" (
  68.   set ebs=
  69.   for /l %%b in (!em0!,1,!em9!) do (
  70.      set "ebs=!ebs!^!@%%b^!^^^!$a^!@%%b^!^^^!
  71.   )
  72. )
  73. )
  74. for /l %%a in (!en0!,1,!en9!) do (
  75.     for %%c in ("!ebs:@=r%%a.!") do (
  76.         for %%d in ("%%~c") do (set ebuf=!ebuf!%%~d!cr!)
  77.     )
  78. )
  79. if "%ke%" equ "!ji!" cls&echo !ebuf!   恭喜你过关了!&pause&goto :me9
  80. set ebuf=!ebuf!方向键移动,空格后退一步,回车重来, Pu上一关,Pd下一关,Esc退出,Del删除记录。玩法:用“♀”把“□”全部推到“☆”内为过关
  81. set/p=.!ebuf!<nul
  82. set ebuf=
  83. set in=0
  84. for /f "tokens=1-5" %%1 in ('mk.exe /w /c 5000') do set/a in=!i%%1%%2%%3!
  85. cls
  86. if !in! equ 0 goto :loop
  87. if !in! gtr 4 goto :me%in%
  88. set/a sm=m,sn=n,!c%in%!=1,bm=m,bn=n,!c%in%!=1
  89. for /f "tokens=1,2" %%a in ("!r%bn%.%bm%! !r%bn%.%bm%!!r%n%.%m%!") do (
  90.     for %%c in ("!%%a!!%%b!") do (
  91.         for /f "tokens=1,2 delims=-" %%1 in (%%c) do (
  92.             if "!%%b!" neq "" set save=r%sn%.%sm%=!r%sn%.%sm%!^&set r%bn%.%bm%=!r%bn%.%bm%!^&set r%n%.%m%=!r%n%.%m%!^&set 原=%原%^&set/a m=%sm%,n=%sn%
  93.             set r%sn%.%sm%=!原!&set r%bn%.%bm%=♀&set r%n%.%m%=%%1&set/a m=bm,n=bn&set 原=%%2
  94.             goto :loop
  95.         )
  96.     set/a m=sm,n=sn
  97.     )
  98. )
  99. goto :loop
  100. :me5
  101. if defined save (
  102.     set r%n%.%m%=%原%
  103.     set %save%
  104.     set save=
  105. )
  106. goto :loop
  107. :me6
  108. endlocal&goto :restart
  109. :me7
  110. (
  111. echo;:#a
  112. echo;@goto :#b%%goto%%
  113. echo;%lev%@%yg%
  114. more +3 "%~nx0"
  115. )>"%~n0.tmp"
  116. set goto=_OK
  117. del "%~nx0"&ren "%~n0.tmp" "%~nx0"&goto :#a
  118. 修改批处理本身,需避免出错
  119. :#b_OK
  120. exit /b
  121. :me8
  122. set/a lev-=2
  123. :me9
  124. set/a lev+=1
  125. if !lev! equ !end! set lev=1
  126. if !lev! equ 0 set/a lev=end-1
  127. endlocal&(if %in% leq 4 for %%a in (!lev!) do set "yg= !lev!!yg: %%~a = !")&set lev=%lev%&goto :restart
  128. :me10
  129. endlocal&set yg=&set lev=1
  130. for /l %%a in (1,1,52) do set yg=!yg!
  131. goto :restart
  132. :囧a9a ab8a ab4d2fba ab2a2b4a ab2a4b2a aba2b5a ab4c2b2a ab8a ab8a a9a
  133. :囧a8g ab3ab2a abdbcdba a2ca2b2a ab2a2ca2 abdfb3a ab2ab3a a8
  134. :囧a9a4 abdb2db2dbdba5 ab9b6a5 abdabda2badb9a aba2b2a9a2b3a abcbcb9b6a abcb3cbcba7b3a ab3cb2a4g5a5 a4bcba g3abfba g3a5
  135. :囧ga4g5 gab2a a2dfa abdca6 abc2bcb2a2 abd2b4a2 a4b2a4 g3a4
  136. :囧g5a4g a6b2a abcb2cb2a abab2daba2 ab2dbadfba a2cabdcb2a gab3a5 ga5
  137. :囧g5a6g g5ab4a ga5ba2ba2 gabcb2cb2cba a2badada2dba abcb2cda2dba ab2d2bcfbca2 a8b2a g7a4
  138. :囧a9g2 ab7a ab2cbcbca a2baca2ba gabd2bd2a2 ga2d2bd2ba g2aba2caba2 g2acbcbcb2a g2ab6fa g2a9
  139. :囧a5g7 ab3a8 abfdbdbdbdba a2bababababa gabcbcbcbcba ga6b2a3 g6a4
  140. :囧g4a4g a5b2a abcb3ca ab2dadba a2ba3ba2 gabdadb2a gacbfbcba gab2a5 ga4
  141. :囧g2a8g a3b2fb3a ab3cbcb2a ab2cbcbcba a5ca5 g3a2bdbd2a g3ab2dab2a g3abdb3da g3a4b2a2 g6a4
  142. :囧a9g ab2fb4a ac7a ad3ad3a ad7a ac3bc3a ab7a a9
  143. :囧a9ag ab8a2 abcacacacfa adbdcd3cda adbdcd3cda abcacacaca2 ab8a a9a
  144. :囧a2 a9a ab2ab2ad2a afbcbcbdba ab3cb2cba abababadba a9a
  145. :囧g9g7a4g9g2 g5a5g3a4b2a a4gab3a6b4a9a ab2a3bab8ab9b2a abcd5ababcbabad2ab4c2aba ab2a2d3cb2abcabad2b2a2b3cba3 ab4ca2cabacbcbad2ab2a2cabcb2a abcacb3cb2abcb2ad2b3ab2cbcb2a a2b3a3cabad3a2d2ab2abcacb3a ga2ba2bab3ad2a3bdb3abcbcba3 a3bab2a9ab2ab2ab3a4 ab7a2b6ab2ab4a6 abcacacbab3cbcb2a9ab2a adcdb2cbab2cbcbcb8cb3ca ad3a2b2a5ca9b2dadba a4b3a6bdbd2ab3a2ba3ba2 g3ab2db2cbab2dab2adaca2bdadb2a g3a3d2bcbabdb3dab4acb3cba g3a3c2bcbaba2b2a2dacbab2a5 ga3bdcdbab3a6b3a2ba2 gab2cd3ca5g4adacab2a gab3a2dcbag6a2b5a2 ga6b3a囧@
  146. :囧g6abdaca3 g6a5g6ab4a g9g8afba3 g9g8a4
  147. :囧g9g7a4 g5a5g3a4b2a a4gab3a6b4a9a ab2a3bab8ab9b2a abcd5ababcbabad2ab4c2aba ab2a2d3cb2abcabad2b2a2b3cba3 ab4ca2cabacbcbad2ab2a2cabcb2a abcacb3cb2abcb2ad2b3ab2cbcb2a a2b3a3cabad3a2d2ab2abcacb3a ga2ba2bab3ad2a3bdb3abcbcba3 a3bab2a9ab2ab2ab3a4 ab7a2b6ab2ab4a6 abcacacbab3cbcb2a9ab2a adcdb2cbab2cbcbcb8cb3ca ad3a2b2a5ca9b2dadba a4b3a6bdbd2ab3a2ba3ba2 g3ab2db2cbab2dab2adaca2bdadb2a g3a3d2bcbabdb3dab4acb3cba g3a3c2bcbaba2b2a2dacbab2a5 ga3bdcdbab3a6b3a2ba2 gab2cd3ca5g4adacab2a gab3a2dcbag6a2b5a2 ga6b3ag6ab囧@
  148. :囧daca3 g6a5g6ab4a g9g8afba3 g9g8aba2g9g9g9g9g3a7 g9g8ab2ag9g9g9g9g3adbdbda g9g8ab2ag9g9g9g9g3ab5a g9g8ab2ag9g9g9g9g3adbdbda g9g8ab2ag9g9g9g9g3ab5a g9g8ab2ag9g9g9g9g3adb4a g9g8ab2ag9g9g9g9g3a4ba2 g9g8ab2ag9g9g9g9g6aba g9g8ab2ag9g9g9g9g6aba g9g8ab2ag9g9g9g9g6aba g9g8ab2ag9g9g9g9g6aba g9g8ab2ag9g9g9g9g6aba g9g8ab2ag9g9g9g9g6aba g9g8ab2ag9g9g9g9g6aba g9g8ab2ag9g9g9g9g6aba g9g8ab2ag9g9g9g9g6aba g9g8ab2ag9g9g9g9g6aba g9g8ab2ag9g9g9g9g6aba g9g8ab2ag9g9g2a7g9g6aba g9g8ab2ag9g9g2ab5ag9g6aba g9g8ab2ag9g9g2囧@
  149. :囧ab5ag9g6aba g9g8ab2ag9g9g2acbcbcag9g6aba g9g8ab2ag9g9g2ab5ag9g6aba g9g8ab2ag9g9g2acbcbcag9g6aba g9g8ab2a9a9a4b5a9a8ba g9g8ab4cb9b9b9b9b6a g9g8ab9b9b9b9b9b2a g9g8a9a9a9a9a9a4
复制代码

TOP

还是挺好玩的,虽然界面效果粗糙。呵呵!

TOP

有些关怎么完也过不去。

TOP

有没提示- -好难

TOP

回复 1# netbenton


    虽然游戏简单  不过没想到原来是这么复杂啊   厉害  支持啊

TOP

回复 20# cjiabing


    什么意思,我打开后就是这样乱码乱跳

TOP

回复 19# 522235677


    囧~!遇到个会用英文表达的人!~
寂寞是黑白的,但黑白不是寂寞,是永恒。BAT 需要的不是可能,而是智慧。

TOP

ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
╖╜╧≥╝ⁿ╥╞╢»ú¼┐╒╕±║≤═╦╥╗▓╜ú¼╗╪│╡╓╪└┤ú¼ Pu╔╧╥╗╣╪ú¼d╧┬╥╗╣╪ú¼Esc═╦│÷ú¼Del╔╛│2╝╟┬╝
μ╖¿ú║╙├í░┤≤í▒░╤í░¿êí▒╚½▓┐═╞╡╜í░íεí▒─┌╬¬╣2╣╪'debug' is not recognized as an in
nal or external command,
operable program or batch file.
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
╖╜╧≥╝ⁿ╥╞╢»ú¼┐╒╕±║≤═╦╥╗▓╜ú¼╗╪│╡╓╪└┤ú¼ Pu╔╧╥╗╣╪ú¼Pd╧┬╥╗╣╪ú¼Esc═╦│÷ú¼Del╔╛│2╝╟┬╝
μ╖¿ú║╙├í░┤≤í▒░╤í░¿êí▒╚½▓┐═╞╡╜í░íεí▒─┌╬¬╣2╣╪'debug' is not recognized as an in
nal or external command,
operable program or batch file.
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
╖╜╧≥╝ⁿ╥╞╢»ú¼┐╒╕±║≤═╦╥╗▓╜ú¼╗╪│╡╓╪└┤ú¼ Pu╔╧╥╗╣╪ú¼Pd╧┬╥╗╣╪ú¼Esc═╦│÷ú¼Del╔╛│2╝╟┬╝
μ╖¿ú║╙├í░┤≤í▒░╤í░¿êí▒╚½▓┐═╞╡╜í░íεí▒─┌╬¬╣2╣╪'debug' is not recognized as an in
nal or external command,
operable program or batch file.
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
╖╜╧≥╝ⁿ╥╞╢»ú¼┐╒╕±║≤═╦╥╗▓╜ú¼╗╪│╡╓╪└┤ú¼ Pu╔╧╥╗╣╪ú¼Pd╧┬╥╗╣╪ú¼Esc═╦│÷ú¼Del╔╛│2╝╟┬╝
μ╖¿ú║╙├í░┤≤í▒░╤í░¿êí▒╚½▓┐═╞╡╜í░íεí▒─┌╬¬╣2╣╪'debug' is not recognized as an in
nal or external command,
operable program or batch file.
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
ííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííííí
╖╜╧≥╝ⁿ╥╞╢»ú¼┐╒╕±║≤═╦╥╗▓╜ú¼╗╪│╡╓╪└┤ú¼ Pu╔╧╥╗╣╪ú¼Pd╧┬╥╗╣╪ú¼Esc═╦│÷ú¼Del╔╛│2╝╟┬╝
μ╖¿ú║╙├í░┤≤í▒░╤í░¿êí▒╚½▓┐═╞╡╜í░íεí▒─┌╬¬╣2╣╪'debug' is not recognized as an in
nal or external command,
operable program or batch file.

TOP

18 关我是玩不过去,还有26关的倒数第三区域也不会。
但 26 关(倒数二关)与 27 关(最后一关)却是没可能玩过去。这两关类似,最后一关只是在倒二基础上加了点东西。都是将一些小图当作区域组成一幅大图,有些区域前面关卡已经出现过,有些没有。

就 26 关来说,最后一个区域没有机会。因为有11个五角星目标地点,也只有11个箱子。但有个小区域无论如何推都至少有一个箱子会到死角出不来。

▓■▓
▓ ▓

这个小区域开始只有下方两个箱子可推。如果向这个小区域中心推就会有三个箱子成死箱子,如果向左推左边的箱子只能在三个格子区域磨或是进入死角,若向右推呢右边的又直接进入死角,所以变成不可能完成的任务了。

或许楼主没注意到,又或许再往右敲掉一块就OK了。
如无特别说明,代码测试环境均为 XP SP3

TOP

回复 16# netbenton


    呵呵,难得见你在,好久没见你了啊!~
寂寞是黑白的,但黑白不是寂寞,是永恒。BAT 需要的不是可能,而是智慧。

TOP

不知道为什么会丢掉了一行关健的空白行,已经改好了。

还加入了过关时字符串飞入显示效果...

TOP

进入以后乱码,然后一按键就无响应了,怎么办?

TOP

2010-05-28 更新

引入了一个字符保存4个记录信息的方法,目前用只第一行文本可支持对300关做记录

下面是16进制与2进制数据串互相转换的方法:
  1. set hhoo=@f1111@e1110@d1101@c1100@b1011@a1010@91001@81000@70111@60110@50101@40100@30011@20010@10001@00000@
  2. ::定义数据,用于16进制和二进制的互换
  3. for /l %%a in (0,1,40) do (
  4. for %%b in ("!ygx:~%%a,1!") do (
  5.   set ygn=!hhoo:*@%%~b=!
  6.   set yg=!yg!!ygn:~,4!
  7. ) )
  8. set ygx=
  9. ::16进制转二进制
  10. for /l %%a in (1,4,161) do (
  11. for %%b in ("!yg:~%%a,4!") do (
  12.   for /f "delims=#" %%c in ("!hhoo:%%~b@=#!") do set ygn=%%~c
  13.   set ygq=!ygq!!ygn:~-1!
  14. ) )
  15. ::2进制转16进制
复制代码

[ 本帖最后由 netbenton 于 2010-5-28 22:04 编辑 ]

TOP

返回列表