Contents..
Home
Tricks and tips
windows7
Internet
Live TV
Free E-book's
Cracked Stuffs
Friday, 30 March 2012
A Game With Notepad
Make A Simple Game/Quiz With Notepad
Just Type The Below Code In Notepad And Save It Is "something.bat" File
@echo off color b0 :menu cls echo Hey! Welcome to the game! echo 1) start! echo 2) how to play echo 3) Exit :,( set /p number= if %number% == 1 goto StartGame if %number% == 2 goto help if %number% == 3 goto exit :startgame cls echo Type Your Name: set /p name= echo Hello %name%! echo Do you want to start the quiz? (y/n) set /p start= if %start% == y goto level1 if %start% == n goto menu goto startgame :help cls echo Press the number of the answer then hit enter. echo go back? (y/n) set /p menugoto= if %menugoto% == y goto menu if %menugoto% == n goto exit goto help :exit goto exit :level1 cls echo Okay, Let's Start. echo What is 100 + 100? echo 1) 1 echo 2) 200 echo 3) 500 set /p answer1= if %answer1% == 1 goto wrong1 if %answer1% == 2 goto correct1 if %answer1% == 3 goto wrong1 goto level1 :correct1 echo You are right! Next Level? (y/n) set /p NL1= if %NL1% == y goto level2 if %NL1% == n goto menu goto correct1 :Wrong1 Echo Sadly, you were wrong. Retry? (y/n) set /p WA1= if %WA1% == y goto level1 if %WA1% == n goto menu goto wrong1 :level2 cls echo Who is on the 100 Rupee Note? echo 1) Mahtma Gandhi echo 2) Tommy King echo 3) Thomas Train echo 4) Jeff Dunham set /p aa= if %aa% == 1 goto correct2 if %aa% == 1 goto wrong2 if %aa% == 1 goto wrong2 if %aa% == 1 goto wrong2 goto level2 :correct2 echo You are right! Next Level? (y/n) set /p NL1= if %NL1% == y goto level3 if %NL1% == n goto menu goto correct1 :wrong2 cls echo YOU LOST! RETRY GAME? (y/n) set/p retry= if %retry% == y goto level1 if %retry% == n goto menu goto wrong2 :level3 cls echo Do You Like Win7tricksandtips.blogspot.com? echo 1) Yes echo 2) No echo 3) Somewhat echo 4) Waste Of Time Browsing That Website set /p aa= if %aa% == 1 goto correct3 if %aa% == 1 goto wrong3 if %aa% == 1 goto wrong3 if %aa% == 1 goto wrong3 goto level3 :correct3 cls echo YOU WIN THE GAME! goto correct3 :wrong2 cls echo YOU LOST! RETRY GAME? (y/n) set/p retry= if %retry% == y goto level1 if %retry% == n goto exit goto wrong3
No comments:
Post a Comment
Note: only a member of this blog may post a comment.
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: only a member of this blog may post a comment.