What's new

Closed code for making a simple quiz game using notepad and cmd

Status
Not open for further replies.

connectibyte

Addict
Joined
May 18, 2015
Posts
53
Reaction
58
Points
118
Age
29
steps:
1,)open notepad
2.)type this code;
echo off
:menu
cls
echo Hello, Welcome to salazar's Game
echo What would you like to do ? ? ?
echo 1) Start Game
echo 2) Exit Game
set /p letter=

if %letter% == 1 goto start game
if %letter% == 2 goto to exit game
goto menu
:start game
cls
echo Level 1
echo Hello, Enter your name:
set /p name=
echo hello, %name%!
echo how are you:
set /p lala=
echo You are feeling %lala%!
echo That's Nice
pause
echo In which class you are studying:
set /p class=
echo You are studying in %class%
echo That's Nice
echo Means you are the children of Senior Wing !
echo That's
pause
echo Anyway
echo In which school you study:
set /p school=
echo You study in %school%!
echo That's Nice
echo The one who made me even study in %school%!

echo What is your ClassTeacher name:
set /p classteacher=
echo Oh ! Your ClassTeacher name is %ClassTeacher%!
echo Means the one who made me and you are friends!!!
pause
echo Am I Right: (yes or no)

set /p right=
if %letter% == yes WoW !
if %letter% == no Never Mind

echo Aman never told me about it !
echo Who teaches you Social Science:
set /p social science=
echo %social science% Mam teaches you Social Science !!

echo Itz Goooood !@!
echo What's your Principal Mam name:
set /p principal=
echo Your principal name is %principal% !

echo What is your mother's name:
set /p name=
echo Your Mother's name is %name% !
echo Nice Name

echo Ok Then Bye for NOW !!!!!!!!!
echo Nice talking with you !
pause
3.)save it as mygame.bat and=====choose all files
RUN IT!!!!AND YOUR DONE :)
 
Status
Not open for further replies.

Similar threads

Back
Top