一个小虫子- @echo off
- title made by 523066680
- setlocal enabledelayedexpansion
- mode con cols=61 lines=31
- for /l %%a in (1,1,60) do (set space= !space!)
- for /l %%a in (1,1,30) do (set L%%a=%space%)
- set /a line=15,col=29,i=0
- :loop
- set /a linenext=%random%%%30+1,colnext=%random%%%60
- for %%a in (line col) do (
- if !%%a! lss !%%anext! (set %%aadd=+) else (set %%aadd=-)
- )
- :loop-1
- if %i% lss 20 (set /a i+=1) else (set i=1)
- if defined cut%i% (
- !cut%i%:"=!
- set "L%a%=!L%a%:~0,%b%! !L%a%:~%c%!"
- )
- set /a C2=col+1
- set "L%line%=!L%line%:~0,%col%!*!L%line%:~%C2%!"
- set cut%i%="set /a a=%line%,b=%col%,c=%C2%"
- cls
- for /l %%a in (1,1,30) do echo,!L%%a!
- for /l %%a in (1,1,300) do (echo,>nul)
- if %line% neq %linenext% (
- set /a line%lineadd%=1
- ) else (
- set /a col%coladd%=1
- )
- if %col% neq %colnext% (goto :loop-1)
- goto :loop
复制代码
[ 本帖最后由 523066680 于 2008-10-1 08:22 编辑 ] |