Introduction: How to Code in Echo Form in Notepad

To create a Game in notepad is not difficult just you need code and method to do,
for beginners I advice to start with simple programming.....PLEASE LEAVE A COMMENT.. 

Step 1: Coding

Here are your code :- (note:- brackets are added  to show you the code do not add brackets while programming the game)

1) (echo) code "echo" are used to write a text for e.g " echo Welcome to EAT games ".

2) (cls) code "cls" is used to cancel the  written notes because after we have saved game as batch file and when you start the game        text you have written does not go it remains we have to scroll down for further text. {see the video for better understanding}

3) (set/p my=Command :- ) code "set/p my=" is used for typing the answer of quiz question or  any type of other programme
   and you can write anything after "=" for e.g Your answer or What you want to do etc.

4) (:text) code ":text" is used as hyperlink see the video for better under standing.
    You can write anything after " : " in the place of text.

5) (if %my% )

6) (color 3) code color defines the color you want to use for text.

7)(start) code start is used to start other progame.
 

Step 2: A Small Sample of Game..

@echo off

title SHOCKING QUIZ
echo -------------------
echo EAT Games present's
echo -------------------
echo.
echo SHOCKING QUIZ 
echo by sahil
color 2
echo.
pause
cls

:one
color 3
echo WeLcOmE
echo.
echo TO start game type A and press enter.
echo.
echo To see instructions type B and press enter.
echo.
echo TO quit type C and press enter.
echo.
set /p y=What you want to do?:
if %y%== a goto two
if %y%== b goto three
if %y%== c goto quit
goto quit

:three
cls
color e
echo INSTRUCTIONS
echo.
echo 1)no cheating
echo.
echo 2)five question will come to you,every right answer will unlock second question.
echo.
echo 3)if any wrong answer you will be out of the game.
echo.
echo 4)when a question comes to you their are four options (A,B,C and D)
echo   if answer is 'A' of given question then type 'A' and press enter.
echo.
pause
cls
echo To play game type 1 and press enter
echo.
set /p num=COMMAND:
if %num%== 1 goto two
goto quit

:two
cls
color f
echo Are you ready to play.....
echo.
pause
cls
echo 1)When Neil Armstrong landed on moon which foot did he step first?
echo.
echo a)Left
echo b)Right
echo c)Both legs at a time
echo d)He dosent have legs
echo.
set/p ans=ANSWER:
if %ans%== a goto fourth
if %ans%== b goto wrong
if %ans%== c goto wrong
if %ans%== d goto wrong
goto quit

:wrong
cls
color 4
echo SORRY!! you have given wrong answer.
pause
goto quit

:fourth
echo.
echo CONGRATULATION..
echo You have unlocked second question
echo.
pause
cls
echo 2)Who invented FACEBOOK?
echo.
echo a)Bill Gates
echo b)Steve Jobs
echo c)Mark Zukerberg
echo d)Jhon Zukerberg
echo.
set/p ans=ANSWER:
if %ans%== a goto wrong
if %ans%== b goto wrong
if %ans%== c goto fifth
if %ans%== d goto wrong
goto quit

:fifth
echo.
echo CONGRATULATION..
echo You have unlocked third question
echo.
pause
cls
echo 3)Which was first advanced humanoid robo?
echo.
echo a)Asimo
echo b)Electro
echo c)NAO
echo d)Humbo
echo.
set/p ans=ANSWER:
if %ans%== a goto wrong
if %ans%== b goto sixth
if %ans%== c goto wrong
if %ans%== d goto wrong
goto quit

:sixth
echo.
echo CONGRATULATION..
echo You have unlocked fourth question
echo this is slightly hard
echo.
pause
cls
echo 4)What was the name of first plane made by Wright Brothers?
echo.
echo a)Eagle
echo b)Air Winger
echo c)Wright's
echo d)Flyer
echo.
set/p ans=ANSWER:
if %ans%== a goto wrong
if %ans%== b goto wrong
if %ans%== c goto wrong
if %ans%== d goto seventh
goto quit

:seventh
cls
echo.
echo CONGRATULATION..
echo.
echo You have unlocked last question of the game
echo.
echo.You are one step away from being WINNER.
echo.
echo are you READY TO PLAY...
echo.
pause
cls
echo 5)Which is one and only one mammal that lay egg?
echo.
echo a)Autumpus
echo b)Playtipus
echo c)Whale
echo d)Congo
echo.
set/p ans=ANSWER:
if %ans%== a goto wrong
if %ans%== b goto correct
if %ans%== c goto wrong
if %ans%== d goto wrong
goto quit

:correct
cls
start sahil.jpg
pause
echo Cerdits...
echo.
echo thank you for playing this game
echo.
echo Game made by Sahil Kore
echo For any details  email me on 'sahilkore@gmail.com'
echo.
echo.
pause
goto quit

Comments

author
Prof. Pickle (author)2012-09-19

Nice work, I couldn't help but notice the spelling and grammar mistakes within the batch file. Please revise your work and correct any mistakes.

Secondly, in the first step, you didn't give an explanation for line 5. Also, the explanation for line 2 (cls) could have been better structured as it probably makes little to no sense to the "beginners" of batch files.

I am looking forward to reading more of your work in the near future.

author
code source (author)Prof. Pickle2012-09-19

Thank you...
For your comment , from onward's I will take care of that..

author
هاشما3 (author)2017-06-25

thanks you can try online notepad it's very simple

<a href=" http://www.guinbox.com/note
"> online notepad </a>

author
laksharora (author)2017-04-11

How to save this file I mean what will be the extension to save this file????

author
Rumor001 (author)2014-10-26

Hi, can anyone maybe help me with a game im programming? Having problems with it and dont know whats up, please mail me at alexbenade@ymail.com.. thanks

author
00weirdo (author)Rumor0012015-11-02

Can you send me it at hermionebluebelt@live.com? perhaps I can look it over!

author
00weirdo (author)2015-11-02

I did everything, but when I open it, it says thing like how 00weirdo isn't a proper batch file!

author
00weirdo (author)00weirdo2015-11-02

Can you help me?

author
JonahE (author)2015-07-01

I made a quiz similar and shorter than this quiz. The coding is also fairly similar. However, when I open it up, it automatically shuts it shuts itself out. What should I do?

author
Tamuda Chimz (author)2015-04-12

a little bit cool.heh

author
kyaw.thetlwin.96 (author)2015-04-04

author
BattyAssassin (author)2014-11-23

Very cool! Thanks for it! AWESOME!!!!

author
lisa.boodram.754 (author)2014-09-25

nice not a bad quiz but can you teach me how to code things in notepad

author
god squad 101 (author)2012-10-05

i did this, but i added my own tweaks like different questions and junk...
I've worked with batch files in notpad before, but just stuff like the matrix effect thing and junk like that, but never something as cool as this...
i am blown away by even the most simple computer programming stuff
thank you so much you are awesome

author

Thanks for your comment.....
I have been trying for simple programming, checkout my other simple batch instructables too....

author
Prof. Pickle (author)2012-09-19

No problem, I'm just trying to help out the community. You may be wondering why I'm posting a new comment instead of simply replying but I cannot seem to find the reply button (don't call me old or stupid, it's no where to be seen).

Anyway, best of luck to you!

author
code source (author)Prof. Pickle2012-09-19

No I really appreciate your answer..
And hey by advising is not stupid, so i like your comments and keep advising or help me and others...

author
Prof. Pickle (author)code source2012-09-19

I'm writing comments (similar to yours) to other people. You might spot some eventually. They are mainly the first and only comment on peoples instructables.

So, now onto what I came here for; what is your next expedition (instructable), and could I help in any way?

author
code source (author)Prof. Pickle2012-09-21

ya, I am going to launch a simple HTML tutorial, for begineers..

author
Prof. Pickle (author)code source2012-09-21

Unfortunately, I have not yet had the pleasure of learning HTML and I will be of no use.

Maybe another time.

author
code source (author)Prof. Pickle2012-09-21

Hey plz visit my new website http://www.theshore.tk/ , and do leave a comment on it in developers tool, it has windows 7 look..

author
Prof. Pickle (author)code source2012-09-22

I just made a comment. I must commend you on your work. I haven't seen anything like this, ever, and it is well done and well designed.

I was just wondering, are you going to add more help articles onto it?

author
code source (author)Prof. Pickle2012-09-23

Oh yes, I am going to add more articles, If you have some beautiful articles then tell me I will add it and you can give me more ideas.

Lastly if you want help in designing a website for you then ask me frankly about it.

About This Instructable

62,511views

6favorites

License:

More by code source:Captcha createrRobotic Arm for disabled personshow to create calculator in batch
Add instructable to: