CODE OF QUIZ GAME IN NOTEPAD

This Is the code of famous quiz game.This code is Just for learning activities. DO not copy!
@echo off
color 0a
title HKQ DEV GAME
echo.
echo – ! -! -! -! -! -! -! -! -! -! -! -! -! -! -!
echo.
echo Welcome to HKQ GAME!!.visit HKQwrites.blogspot.com
echo download the MY Theme Rainbow Spell
echo.
echo -! -! -! !- !- !- !- ! -! -! -! -! -! -! -! -!
echo.
echo Copyright HKQWORKS(C). You cannot use any part of this game  for any purpose!
echo.
echo Hit enter then after the commmand feature pops up press A to play or B to see
echo instructions! After making your choice, press enter again.
pause
set /p input=COMMAND?
if %input%==a goto Q1
if %input%==b goto instructions
:instructions
echo Press the number of your choice. Then, press enter. You will be told if you got it right or wrong. Then press any button to continue to the next question! Press any button to start!
pause
goto Q1
:Q1
cls
echo Where do the wookies live?
echo 1 Couruscant
echo 2 The death star
echo 3 Kashyyyk
set /p starwars=choice1~3
if%starwars%==1 goto incorrect
if%starwars%==2 goto Incorrect
if%starwars%==3 goto correct
:Correct
cls
echo You got it right!!
pause
goto Q2
:Incorrect
cls
echo Sorry you got it wrong!!
pause
goto Q2
:Q2
cls
echo Who is the captain of the millenium falcon?
echo 1 darth vader
echo 2 han solo
echo 3 luke skywalker
set /p captain=choice1~3
if %captain%==1 goto Incorrect1
if %captain%==2 goto Correct1
if %captain%==3 goto Incorrect1
:Correct1
cls
echo you got it right!!
pause
goto Q3
:Incorrect1
cls
echo sorry you got it wrong!!
pause
goto q3
:Q3
cls
echo What typ of spaceship luke’s starfighter?
echo 1 Z-95
echo 2 X-wing
echo 3 luke skywalker
set /p luke=choice1~3
if %luke%==1 goto Incorrect2
if %luke%==2 goto Correct2
if %luke%==3 goto Incorrect2
:Correct2
cls
echo you got it right!!
pause
goto Q4
:Incorrect2
cls
echo sorry you got it wrong!!
pause
goto Q4
:Q4
cls
echo How many arms does general grevious have?
echo 1 Four
echo 2 Nine
echo 3 None
set /p arms=choice1~3
if %arms%==1 goto correct3
if %arms%==2 goto incorrect3
if %arms%==3 goto incorrect3
:Correct3
cls
echo you got it right!!
pause
goto q5
:Incorrect3
cls
echo sorry you got it wrong!!
pause
goto q5
:Q5
cls
echo Where is the rebel base located in episode 5?
echo 1 Naboo
echo 2 Narnia
echo 3 Hoth
set /p base=choice1~3
if %base%==1 goto incorrect4
if %base%==2 goto Incorrect4
if %base%==3 goto correct4
:Correct4
cls
echo You got it right!!
pause
goto Q6
:Incorrect4
cls
echo Sorry you got it wrong!!
pause
goto Q6
:Q6
cls
echo What are the names of Darth Vaders children?
echo 1 han solo and chewbaca
echo 2 darth maul and qui-gon jin
echo 3 Luke Skywalker and Princess Leia
set /p children=choice1~3
if %children%==1 goto incorrect5
if %children%==2 goto incorrect5
if %children%==3 goto correct5
:Correct5
cls
echo you got it right!!
pause
goto q7
:Incorrect5
cls
echo sorry you got it wrong!!
pause
goto q7
:Q7
cls
echo Who is count dooku
echo 1 One of the Chancellors former aprentices
echo 2 Obi wan’s aprentice
echo 3 A secret police agent
set /p dooku=choice1~3
if %dooku%==1 goto correct6
if %dooku%==2 goto incorrect6
if %dooku%==3 goto Incorrect6
:Correct6
cls
echo you got it right!!
pause
goto Q8
:Incorrect6
cls
echo sorry you got it wrong!!
pause
goto Q8
:Q8
cls
echo What is the death star?
echo 1 a moon
echo 2 a space station the size of a planet with a gaint lazer capable of destroying planets!!!
echo 3 the emporer’s flagship
set /p dstar=choice1~3
if %dstar%==1 goto Incorrect7
if %dstar%==2 goto Correct7
if %dstar%==3 goto Incorrect7
:Correct7
cls
echo you got it right!!
pause
goto Q9
:Incorrect7
cls
echo sorry you got it wrong!!
pause
goto Q9
:Q9
cls
echo Who were the clones from episode 2 cloned from
echo 1 Boba Fett
echo 2 han solo
echo 3 Obi wan kenobi
set /p boba=choice1~3
if %boba%==1 goto correct8
if %boba%==2 goto incorrect8
if %boba%==3 goto Incorrect8
:Correct8
cls
echo you got it right!!
pause
goto Q10
:Incorrect8
cls
echo sorry you got it wrong!!
pause
goto Q10
:Q10
cls
echo Where do the gungans live?
echo 1 Naboo
echo 2 Dagobah
echo 3 Mustafar
set /p worlds=choice1~3
if %worlds%==1 goto correct10
if %worlds%==2 goto incorrect10
if %worlds%==3 goto incorrect10
:Correct10
cls
echo you got it right!!
pause
goto win
:Incorrect10
cls
echo sorry you got it wrong!!
pause
goto win
:win
cls
echo Conratulations! You have made it to the end!
pause

Add a Comment

Your email address will not be published. Required fields are marked *