Sunday, April 3

Steps to make a quiz game in notepad.

Do you want to make a quiz game of your own.Yes you can.This will take only 5 minutes.Yes just Follow 5 steps and make your quiz game

HERE WE GO:-

 Step 1

Open notepad in your P.C or laptop.


 STEP 2= After opening Notepad. Paste this code in notepad.

@echo off
color a
:menu
echo Welcome to Saksham's Game
echo 1) Start
echo 2) Exit
set /p menu=
if %menu% == 1 goto start
if %menu% == 2 goto exit
cls

:start
echo Hello,
cls
pause
echo how are you feeling ?
set /p ok=
echo im feeling %ok% too mate
pause
cls

echo sorry I didnt tell you my name! I am Saksham
echo and you are ?
set /p name=
echo hello %Name%, I just want to say that you are now my friend
pause
echo how old are you?
set /p age=
echo you'r %age%
pause
echo I'm 14 year's old :D
pause
cls

:quiz
echo Welcome to the Quiz by : Saksham Luthra
pause
echo Question 1
echo What is capital of country- philippines?

echo 1) Manila
echo 2) Port Moresby
echo 3) Montgomery

set /p quiz=
if %quiz% == 1 goto yes
if %quiz% == 2 goto nop
if %quiz% == 3 goto nope
pause

:yes
echo Correct ! 
goto quiz2
cls
:quiz2
echo In which film Tom cruize has not done any role

echo 1) The firm
echo 2) Salt
echo 3) Mission Impossible 2

set /p quiz=
if %quiz% == 1 goto Nop
if %quiz% == 2 goto nice
if %quiz% == 3 goto nope
cls
:Nice
echo Correct !
goto quiz3

:quiz3
echo Who directed movie"Shawshank redumption".?
echo 1) Mark Steven Johnson
echo 2) Steve Austin
echo 3) Frank Darabont

set /p quiz=
if %quiz% == 1 goto nope
if %quiz% == 2 goto nope
if %quiz% == 3 goto end

:end
echo Correct you are very intelligent
timeout 15
exit


:nope
echo Wrong !




:exit
exit


Step 3=Save this file as Game.bat

After pasting this code,save this file as quiz.bat or anything but the file name should end with (.bat)

Step 4=Open this file 

After saving the file,open the file and start playing. Enjoy this game.Also remember to save this code in text format in your P.C or laptop.


Now enjoy this game and stay tuned with us.Visit this blog for interesting posts.BYE-BYE.




No comments:

Post a Comment