Вопрос Что это за язык программирования? Помогите пожалуйста.

Регистрация
20 Май 2013
Сообщения
78
Репутация
0
Спасибо
0
Монет
0
@echo off
title [Test]
color A0
if "%1" neq "" ( goto %1)
:Menu
cls
echo 1. Play
echo 2. Credits
echo 3. Exit
set /p answer=Press the key with the corresponding number, and then press Enter :
if %answer%==1 goto Start_1
if %answer%==2 goto Credits
if %answer%==3 goto Exit
:Exit
cls
echo Thanks for playing!
pause
exit /b
:Credits
cls
echo Credits
echo.
echo Thank you for plaing in [Test]!
pause
goto Menu
:Start_1
cls
echo Oh, no! You are surrounded by enemies.
echo There are five of them, and they are all armed.
echo If you fight them, you have a chance to win.
set /p answer=Fight or run away?
if %answer%==fight goto Fight_1
if %answer%==run away goto Run_1
pause
:Run_1
cls
echo You survived to fight another time.
pause
goto Start_1
:Fight_1
echo Get ready for a fight.
echo The enemies suddenly attacked you.
set /p answer= Press 1, then Enter.
if %answer%==1 goto Fight_1_Loop
:Fight_1_Loop
set /a num=%random%
if %num% gtr 4 goto Fight_1_Loop
if %num% lss 1 goto Fight_1_Loop
if %num%==1 goto Lose_Fight_1
if %num%==2 goto Win_Fight_1
if %num%==3 goto Win_Fight_1
if %num%==4 goto Win_Fight_1
:Lose_Fight_1
cls
echo You've lost. Play it again?
pause
goto Menu
:Win_Fight_1
cls
echo You win!
set /p answer=Do you want to save the game? [y/n]
if %answer%=='y' goto 'Save'
if %answer%=='n' goto 'Start_2'
:Save
goto Start_2
 
Назад
Сверху