sds 当前离线
上等兵
@echo off title 打地鼠3×3^|Made by 晃就左扔【SDS】1.0 color 1F set score=0 set line0=┌─┐┌─┐┌─┐ set line4=└─┘└─┘└─┘ mode con:cols=50 lines=20 for %%i in (●10%% ●●20%% ●●●30%% ●●●●40%% ●●●●●50%% ●●●●●●60%% ●●●●●●●70%% ●●●●●●●●80%% ●●●●●●●●●90%% ●●●●●●●●●●OK) do ( cls echo %%i timeout /t 1 /nobreak>nul ) :kcdh cls rem 设置地鼠位置 echo Loading...... :xh set ds=%random% if %ds% GTR 9 goto xh if %ds% EQU 0 goto xh if %ds% == 1 goto ds1 if %ds% == 2 goto ds2 if %ds% == 3 goto ds3 if %ds% == 4 goto ds4 if %ds% == 5 goto ds5 if %ds% == 6 goto ds6 if %ds% == 7 goto ds7 if %ds% == 8 goto ds8 if %ds% == 9 goto ds9 :ds1 set line1=│●││○││○│ set line2=│○││○││○│ set line3=│○││○││○│ goto play :ds2 set line1=│○││●││○│ set line2=│○││○││○│ set line3=│○││○││○│ goto play :ds3 set line1=│○││○││●│ set line2=│○││○││○│ set line3=│○││○││○│ goto play :ds4 set line1=│○││○││○│ set line2=│●││○││○│ set line3=│○││○││○│ goto play :ds5 set line1=│○││○││○│ set line2=│○││●││○│ set line3=│○││○││○│ goto play :ds6 set line1=│○││○││○│ set line2=│○││○││●│ set line3=│○││○││○│ goto play :ds7 set line1=│○││○││○│ set line2=│○││○││○│ set line3=│●││○││○│ goto play :ds8 set line1=│○││○││○│ set line2=│○││○││○│ set line3=│○││●││○│ goto play :ds9 set line1=│○││○││○│ set line2=│○││○││○│ set line3=│○││○││●│ goto play :play cls echo 得分:%score% echo %line0% echo %line1% echo %line2% echo %line3% echo %line4% set /p input=请输入地鼠位置(从左到右,从上到下依次为1-9) if %input% EQU %ds% goto dui if %input% NEQ %ds% goto cuo :dui set /a score=%score%+1 echo 你猜对了!地鼠就在第%ds%格! echo 2秒后继续。 timeout /t 2 /nobreak>nul goto kcdh :cuo echo 你猜错了!地鼠在第%ds%格! echo 2秒后继续。 timeout /t 2 /nobreak>nul goto kcdh复制代码
评分人数
TOP
@echo off title 打地鼠3×3^|Made by 晃就左扔【SDS】1.0 color CF set score=0 set line0=┌─┐┌─┐┌─┐ set line4=└─┘└─┘└─┘ mode con:cols=50 lines=20 rem 启动界面 echo. echo. echo HIT THE MOUSE 1.995 echo 打 地 鼠 元 旦 版 echo 正在启动中…… echo. echo ┌───┐ for %%i in (1 1 100) do ( set /p=●<nul timeout /t 1 /nobreak>nul ) echo. echo └───┘ timeout /t 2 /nobreak>nul :kcdh cls rem 设置地鼠位置 echo Loading...... :xh set ds=%random% if %ds% GTR 9 goto xh if %ds% EQU 0 goto xh if %ds% == 1 goto ds1 if %ds% == 2 goto ds2 if %ds% == 3 goto ds3 if %ds% == 4 goto ds4 if %ds% == 5 goto ds5 if %ds% == 6 goto ds6 if %ds% == 7 goto ds7 if %ds% == 8 goto ds8 if %ds% == 9 goto ds9 :ds1 set line1=│●││○││○│ set line2=│○││○││○│ set line3=│○││○││○│ goto play :ds2 set line1=│○││●││○│ set line2=│○││○││○│ set line3=│○││○││○│ goto play :ds3 set line1=│○││○││●│ set line2=│○││○││○│ set line3=│○││○││○│ goto play :ds4 set line1=│○││○││○│ set line2=│●││○││○│ set line3=│○││○││○│ goto play :ds5 set line1=│○││○││○│ set line2=│○││●││○│ set line3=│○││○││○│ goto play :ds6 set line1=│○││○││○│ set line2=│○││○││●│ set line3=│○││○││○│ goto play :ds7 set line1=│○││○││○│ set line2=│○││○││○│ set line3=│●││○││○│ goto play :ds8 set line1=│○││○││○│ set line2=│○││○││○│ set line3=│○││●││○│ goto play :ds9 set line1=│○││○││○│ set line2=│○││○││○│ set line3=│○││○││●│ goto play :play cls echo 得分:%score% echo 【0】菜单 echo %line0% echo %line1% echo %line2% echo %line3% echo %line4% set /p input=请输入地鼠位置(从左到右,从上到下依次为1-9) if %input% EQU 0 goto menu if %input% EQU %ds% goto dui if %input% NEQ %ds% goto cuo :menu cls echo 操作界面(V1.000000) echo 【1】存档 【2】读档 【3】退出【4】作弊 【5】返回 set /p input=请输入菜单编号: if %input% == 1 goto save if %input% == 2 goto read if %input% == 3 goto exit if %input% == 4 goto zb if %input% == 5 goto play goto menu :dui set /a score=%score%+1 echo 你猜对了!地鼠就在第%ds%格! echo 2秒后继续。 timeout /t 2 /nobreak>nul goto kcdh :cuo echo 你猜错了!地鼠在第%ds%格! echo 2秒后继续。 timeout /t 2 /nobreak>nul goto kcdh :save set /p name=请输入存档名: echo %score% >>%name%.save echo 存档成功!2秒后返回 timeout /t 2 /nobreak>nul goto play :read set /p name=请输入存档名(不用加后缀名): set /p score=<%name%.save echo 读档成功!2秒后返回 timeout /t 2 /nobreak>nul goto play :zb set /p score=请输入分数: goto play :exit cls echo. echo. echo HIT THE MOUSE 1.995 echo 打 地 鼠 元 旦 版 echo 正在退出中…… echo. timeout /t 2 /nobreak>nul exit复制代码
hnfeng 当前离线
五级士官
@echo off title 打地鼠3×3^|Made by 晃就左扔【SDS】1.0 color CF set score=0 mode con:cols=50 lines=20 rem 启动界面 echo. echo. echo HIT THE MOUSE 1.995 echo 打 地 鼠 元 旦 版 echo 正在启动中…… echo. echo ┌───┐ for %%i in (1 1 100) do ( set /p=●<nul timeout /t 1 /nobreak>nul ) echo. echo └───┘ timeout /t 2 /nobreak>nul :kcdh cls rem 设置地鼠位置 echo Loading...... :xh set ds=%random% if %ds% GTR 9 goto xh if %ds% EQU 0 goto xh if %ds% == 1 goto ds1 if %ds% == 2 goto ds2 if %ds% == 3 goto ds3 if %ds% == 4 goto ds4 if %ds% == 5 goto ds5 if %ds% == 6 goto ds6 if %ds% == 7 goto ds7 if %ds% == 8 goto ds8 if %ds% == 9 goto ds9 :ds1 set line1= ● ○ ○ set line2= ○ ○ ○ set line3= ○ ○ ○ goto play :ds2 set line1= ○ ● ○ set line2= ○ ○ ○ set line3= ○ ○ ○ goto play :ds3 set line1= ○ ○ ● set line2= ○ ○ ○ set line3= ○ ○ ○ goto play :ds4 set line1= ○ ○ ○ set line2= ● ○ ○ set line3= ○ ○ ○ goto play :ds5 set line1= ○ ○ ○ set line2= ○ ● ○ set line3= ○ ○ ○ goto play :ds6 set line1= ○ ○ ○ set line2= ○ ○ ● set line3= ○ ○ ○ goto play :ds7 set line1= ○ ○ ○ set line2= ○ ○ ○ set line3= ● ○ ○ goto play :ds8 set line1= ○ ○ ○ set line2= ○ ○ ○ set line3= ○ ● ○ goto play :ds9 set line1= ○ ○ ○ set line2= ○ ○ ○ set line3= ○ ○ ● goto play :play cls echo 得分:%score% echo 【0】菜单 echo %line1% echo %line2% echo %line3% set /p input=请输入地鼠位置(从左到右,从上到下依次为1-9) if %input% EQU 0 goto menu if %input% EQU %ds% goto dui if %input% NEQ %ds% goto cuo :menu cls echo 操作界面(V1.000000) echo 【1】存档 【2】读档 【3】退出【4】作弊 【5】返回 set /p input=请输入菜单编号: if %input% == 1 goto save if %input% == 2 goto read if %input% == 3 goto exit if %input% == 4 goto zb if %input% == 5 goto play goto menu :dui set /a score=%score%+1 echo 你猜对了!地鼠就在第%ds%格! echo 2秒后继续。 timeout /t 2 /nobreak>nul goto kcdh :cuo echo 你猜错了!地鼠在第%ds%格! echo 2秒后继续。 timeout /t 2 /nobreak>nul goto kcdh :save set /p name=请输入存档名: echo %score% >>%name%.save echo 存档成功!2秒后返回 timeout /t 2 /nobreak>nul goto play :read set /p name=请输入存档名(不用加后缀名): set /p score=<%name%.save echo 读档成功!2秒后返回 timeout /t 2 /nobreak>nul goto play :zb set /p score=请输入分数: goto play :exit cls echo. echo. echo HIT THE MOUSE 1.995 echo 打 地 鼠 元 旦 版 echo 正在退出中…… echo. timeout /t 2 /nobreak>nul exit复制代码
回复 hnfeng 将所有制表符改为空格,再试试能不能对齐网盘下载: 如果遇到制表符对不齐问题,请 ... sds 发表于 2024-1-1 17:23
@echo off ver | find " 10." >nul && ( echo 当前系统是win10/11 echo; echo ┌ ─ ┬ ─ ┐ echo │ ab│ 12│ echo ├ ─ ┼ ─ ┤ echo │ 中│ 文│ echo └ ─ ┴ ─ ┘ echo;&pause ) || ( echo 当前系统是较旧系统 echo; echo ┌─┬─┐ echo │ab│12│ echo ├─┼─┤ echo │中│文│ echo └─┴─┘ echo;&pause )复制代码