Batch TRIVIA
Hi everybody! tuna6211 is here and this is my first instructable! Today, I'm going to show you my batch trivia game called: TRIVIA v0.1.0. . Lets start!!!
Getting Ready
What you need is:
NOTEPAD
FUN
BATCH SKILLS
have fun!!!
Start
Please copy this into notepad:
@echo off
title TRIVIA v0.1.0.
color FC
echo TRIVIA
echo Welcome to TRIVIA v0.1.0 (Christmas Update). Created by tuna6211 in Turkey, Istanbul, 20/12/2015.
pause
cls
echo Loading.
ping localhost -n 2 >nul
cls
echo Loading..
ping localhost -n 2 >nul
cls
echo Loading...
ping localhost -n 2 >nul
cls
echo Loading....
ping localhost -n 2 >nul
cls
echo Loading.....
ping localhost -n 2 >nul
ping localhost -n 2 >nul
:PASSWORD
echo For extra security, please type in your PC password please.
Set input=
set /p input= Password (input then press enter) :
if %input%==keystonetuna goto YES
if not %input%==keystonetuna goto NO
:YES
cls
goto TRIVIA
:NO
echo Wrong PC passcode. Please try again.
pause
goto PASSWORD
:TRIVIA
cls
goto QUESTION1
:QUESTION1
echo Question 1:
pause
echo How the Grinch Stole Christmas is a book of...
echo 1. Roald Dahl
echo 2. Elizabeth Baker
echo 3. Dr. Seuss
pause
cls
set /p How the Grinch Stole Christmas=choice1~3
if %How the Grinch Stole Christmas%==1 goto INCORRECT
if %How the Grinch Stole Christmas%==2 goto INCORRECT
if %How the Grinch Stole Christmas%==3 goto CORRECT
:CORRECT
echo Correct!
pause
cls
goto QUESTION2
:INCORRECT
echo Incorrect!
pause
cls
goto QUESTION1
:QUESTION2
echo Question 2:
pause
echo
Who is the first reindeer to be introduced in the song Rudolph the Red Nosed Reindeer?
echo 1.Rudolph
echo 2.Dancer
echo 3.Dasher
pause
cls
set /p Rudolph the Red Nosed Reindeer=choice1~3
if %Rudolph the Red Nosed Reindeer%==1 goto INCORRECT2
if %Rudolph the Red Nosed Reindeer%==2 goto INCORRECT2
if %Rudolph the Red Nosed Reindeer%==3 goto CORRECT2
:CORRECT2
echo Correct!
pause
cls
goto QUESTION3
:INCORRECT2
echo Incorrect!
cls
goto QUESTION2
:QUESTION3
echo Question 3:
pause
echo What command starts a batch file?
echo 1.@echo on.
echo 2.@echo off.
echo 3.@echo.
pause
cls
set /p Batch File Starting Command=choice1~3
if %Batch File Starting Command%==1 goto INCORRECT3
if %Batch File Starting Command%==2 goto CORRECT3
if %Batch File Starting Command%==3 goto INCORRECT3
:CORRECT3
echo Correct!
pause
goto FINISH
:INCORRECT3
echo Incorrect!
pause
goto QUESTION3
:FINISH
echo You have completed TRIVIA! Congrats!
pause
cls
Finish
Finally, change the password in the game and save it as TRIVIA.bat.
Note: DO NOT CREATE AN UPDATED VERSION
Bye!