How to make a Quiz Game in Notepad

Code under here because Us Programmers aren't allowed to Share .bat files in the internet Code here
@echo off
color 0b
echo.
echo.
echo.
echo Welcome to Quiz Game!
echo 1)Start
echo 2)Exit
set /p type=
if %type%== 1 start1
if %type%== 2 exit1

:start1
cls
color 0b
echo <Question here.>
echo 1)Blah
echo 2)Yadda
set /p type=
if %type%== 1 goto correct1
if %type%== 2 goto wrong1

:correct1
cls
color 0a
echo Correct (you can add more things if you want)
pause

:wrong1
cls
color 0c
echo Type 1 to exit
set /p type=
if %type%== 1 exit1

:exit1
cls
echo GoodBye!
pause

If it worked comment "Thx it worked". -MrDrak

Comments

Sign In or Register to comment.