Introduction: Trivia Game!!

Picture of Trivia Game!!

A crappy batch applictation but its my first one so be nice on the comments plz
and how do i get rid of the second pause at the begginging if i only use one it doesnt pause at all

Please comment on the game

Step 1: What Is in the Game

Picture of What Is in the Game

There are only a couple questions but like i said, its my fist batch application so this is all still new to me. And although it may not be a very good trivia game it took me a LONG time.

Also in the game there might still be some errors, if you find one please comment and tell me. There are also some spelling errors.

Notice that it says press any key to continue . . . twice. How do i get it so i only need it once?

Step 2: The Game

Picture of The Game

@echo off
color cf
title Computerfaker3's TRIVIA
echo.
echo - - - - - - - - - - - - - - -
echo.
echo Welcome to Computerfaker3's TRIVIA!!
echo.
echo - - - - - - - - - - - - - - -
echo.
pause
echo Heres the rules
echo 1 - no cheating
pause
pause
echo 2 - it will say "choose1~3" on most questions
echo all you have to do is choose 1,2, or 3 and click enter
pause
pause
echo 3 - thats it, have fun!!
pause
pause
:top
echo First question
echo this is an easy one
pause
cls
echo When Thanksgiving?
echo 1 November 17
echo 2 November 27
echo 3 The last thursday in November
set /p num=choose 1~3
if %num%==1 goto two
if %num%==2 goto two
if %num%==3 goto one
:one
echo Congragulations
echo.
pause & goto next
:two
echo sorry you got it wrong
pause
pause
goto end
:next
cls
echo What famous document begins: "When in the course of human events..."?
pause
echo 1 The Declaration of Independence
echo 2 Mana Carta
echo 3 The Monroe Doctrine
set /p undefine=choose 1~3
if %undefine%==1 goto one2
if %undefine%==2 goto two2
if %undefine%==3 goto two2
:one2
echo Good Job!! You got it right
pause
goto next2
:two2
echo Sorry... you got it wrong
pause
pause
goto end
:next2
cls
echo Next question
echo What modern vehicle was invented to circumvent trench warfare?
echo 1 - artillary
echo 2- tank
echo 3- dune buggy
set /p n=choose1~3
if %n%==1 goto one3
if %n%==2 goto two3
if %n%==3 goto one3
:one3
echo common this ones easy
echo game over
pause
goto end
:two3
echo Good job! That was a tricky one
echo Ok now its about to get more tricky
pause
goto nextt
:nextt
cls
echo What computer accessory did Apple try splitting in two in 1993, in an attempt to reduce injuries?
echo 1 the mouse
echo 2 the screen
echo 3 the keyboard
set /p d=choice1~3
if %d%==1 goto one4
if %d%==2 goto one4
if %d%==3 goto three4
:one4
echo Incorrect
echo sorry, your wrong
pause
echo.
echo try again
pause
goto end
:three4
echo CORRECT!!!
echo Congragulations!! that was a tricky one, you did well young grasshopper
echo i told you it got tricky
pause
echo.
echo good luck with this one
pause
:john
cls
echo If john had more apples then bill
echo and Bill had 44 apples
echo but Jill had 49 apples and had more the john
echo John did not have an even number of apples
echo John did not have a number devisible by 5
echo how many apples did john have
pause
echo 1 45
echo 2 46
echo 3 47
echo 4 48
echo 5 33
echo 6 49
set /p y=choice1~6
if %y%==1 goto wrong
if %y%==2 goto wrong
if %y%==3 goto right
if %y%==4 goto wrong
if %y%==5 goto wrong
if %y%==6 goto wrong
:wrong
echo your wrong
echo i'm sorry
echo it was easy
pause
echo.
echo would you like to continue?
echo 1 yes 2 no
set /p yes=choice1~2
if %yes%==1 goto john
if %yes%==2 goto end
:right
echo Good Job!!
echo that was easy
pause
echo.
echo ok last question its a tough one
pause
cls
echo Mom and Dad have four daughters,
echo and each daughter has one brother.
echo How many people are in the family?
echo 1 7
echo 2 10
echo 3 9
set /p pic=choice1~3
if %pic%==1 goto nice
if %pic%==2 goto no
if %pic%==3 goto no
:nice
echo Way to Go!!
echo this is the end
pause
echo.
echo Way to Go!! You beat the game!!
echo hope you enjoyed it
pause
goto end
:no
echo OHH SOO CLOSE
echo would you like to continue?
echo 1 yes 2 no
set /p yes=choice1~2
if %yes%==1 goto john
if %yes%==2 goto end
:end

Comments

admin (author)2008-12-08

This project looks awesome but there isn't enough documentation of you actually making it to be a full Instructable. There are two things which you could do. 1) If you happen to have images of you making your project you can create some more steps, add those additional photos into your Instructable and then republish your Instructable. 2) If you don't have any more pictures of you working on your project, that's ok too. That just means that your project is better suited to be submitted as a slideshow. Your images are already in your library, and you can use the same text that you have already written for your Instructable so it should only take a few minutes to create your slideshow and show the world what you made! Thanks for your submission and let me know if you have any questions along the way.

Fatima makrani (author)2013-11-24

You are amazingg....:)

shiftgraffiti (author)2011-08-02

what do u save it as and where

MertDemir (author)shiftgraffiti2011-10-12

Open notepad copy to notepad that save as trivia.bat or trivia.cmd

frodobot (author)2010-01-05

Thanks. I just did it and it took me about an hour to make modifications for it to suit me but it was a very good code. Like the others, i'd say to use only one pause and it will only do one pause.

computerfaker3 (author)2009-06-22

nope i'm right, sorry it took so long to comment but i thought i already did a while ago haha actually if the mom and dad have 4 daughters and they all have 1 brother its the same brother for all of them so actually its 7

ssankoo (author)2009-03-07

Just like my comment on the other step, dont use the correct label directly after the if statements, it wont work correctly when something else is typed in.. Oh and by the way, you do not have to use 2 pauses (at the beginning of the script) , 1 is enough ;)

ssankoo (author)2009-03-07

To have it only say it once, just use 1 pause command instead of 2 ;)

wamj (author)2009-02-22

No, there is only one brother

TOCO (author)2009-01-28

the last question is 10. 4 plus 4 equals 8. plus mom and dad equals 10 people in the family.

rippinblaise (author)TOCO2009-02-15

He's right but good job on the 'ible

About This Instructable

15,147views

6favorites

License:

More by computerfaker3:Funny Folder PrankHow to make a simple Batch trivia gameTrivia Game!!
Add instructable to: