level 12
命幽
楼主
-----------------------------猜数小游戏----------------------------------------
:head
@echo off
mode con: cols=54 lines=12
title Guessing game byJason*yuyuan
:set
set /a times=0
set /a com=%random%%%100+1
set a=┏
set b=━
set d=┓
set e=┃
set i=┗
set k=┛
:set1
cls
set /a times+=1
echo.
echo. %a%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%d%
echo. Round[%times%]%e%Guess the number By Jason%e%
echo. %i%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%k%
echo.
echo. %a%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%d%
echo. %e% [help] %e%
echo. %e% Please enter 1 up to 100. %e%
echo. %i%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%k%
echo.
set /p you=Please enter[1~100]:
:if
if %you% gtr 100 goto error
if %you% gtr %com% echo.big!&pause&goto set1
if %you% equ %com% echo.right!&pause&goto end
if %you% lss %com% echo.little!&pause&goto set1
if %you% leq 0 goto error
:error
echo.Input error, please input again!
set /a times-=1
pause
goto set1
:end
echo.times--%times%
echo.You are right!
pause
------------------------------------cut-----------------------------------------
能够过滤的字符只有超出100的数字或是0或0以下的数字以及字母,特殊字符则是不行 哀哉
没技术者的悲哀啊 汗。。。
2013年07月09日 13点07分
1
:head
@echo off
mode con: cols=54 lines=12
title Guessing game byJason*yuyuan
:set
set /a times=0
set /a com=%random%%%100+1
set a=┏
set b=━
set d=┓
set e=┃
set i=┗
set k=┛
:set1
cls
set /a times+=1
echo.
echo. %a%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%d%
echo. Round[%times%]%e%Guess the number By Jason%e%
echo. %i%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%k%
echo.
echo. %a%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%d%
echo. %e% [help] %e%
echo. %e% Please enter 1 up to 100. %e%
echo. %i%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%b%%k%
echo.
set /p you=Please enter[1~100]:
:if
if %you% gtr 100 goto error
if %you% gtr %com% echo.big!&pause&goto set1
if %you% equ %com% echo.right!&pause&goto end
if %you% lss %com% echo.little!&pause&goto set1
if %you% leq 0 goto error
:error
echo.Input error, please input again!
set /a times-=1
pause
goto set1
:end
echo.times--%times%
echo.You are right!
pause
------------------------------------cut-----------------------------------------
能够过滤的字符只有超出100的数字或是0或0以下的数字以及字母,特殊字符则是不行 哀哉
没技术者的悲哀啊 汗。。。