Introduction: Batch TRIVIA

Picture of 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!!!

Step 1: Getting Ready

Picture of Getting Ready

What you need is:

NOTEPAD

FUN

BATCH SKILLS

have fun!!!

Step 2: Start

Picture of 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

Step 3: Finish

Finally, change the password in the game and save it as TRIVIA.bat.

Note: DO NOT CREATE AN UPDATED VERSION

Bye!

Comments

tuna6211 (author)2015-12-23

I'll have updated versions!

tuna6211 (author)2015-12-23

Thanks!

DIY Hacks and How Tos (author)2015-12-22

Nice batch file project.