我正在创建一个石头剪刀游戏,我的@echo关闭不起作用。当我运行程序时它会继续存在。这是我的代码。我非常感谢一些帮助。
@echo off
cls
color 0a
goto Roop
:Roop
echo Cmd is generating a random number between 1 and 10
echo This may take a moment. . .
:loop
set num=%random%
if /i %num% GTR 3 goto loop
if /i %num% LSS 1 goto loop
goto finish
:finish
cls
echo Your opponent has chosen. Goto
pause >nul
if /i %num%==1 goto Rock
if /i %num%==2 goto Paper
if /i %num%==3 goto Scissors
:Rock
echo Please choose:
echo 1.
echo lÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ
echo Ûo------------------------Û
echo Û-------------------------Û
echo Ûo------------------------Û
echo Û-------------------------Û
echo Ûo------------------------Û
echo Û-------------------------Û
echo ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ
pause