loading

This is a game where you guess words.

Step 1: Open Notepad

Open notepad. Please note that this project will crash on the last level. This was a remake project.

Step 2: Paste the Code:

My code can have some errors so please fix it. It's all about pargraphs

@echo off
color 8

:Start

Mode 50,30

echo Welcome to the word Guessing tournament Game

echo Please Enter Your Name

set /p name=

if '%name%' == '' goto Begin

:Begin

cls

echo %name% What do you want to do?

echo.

echo 1)Start Game

echo 2)Exit Game

set /p choice=

if '%choice%' == '1' goto Game

if '%choice%' == '2' Exit

:Game

cls

echo Guess a word!

set /p word=

if '%word%' == 'cat' goto Win1 cls

echo Incorrect!!

echo 1)Guess Again

echo 2)Hint set /p choice=

if '%choice%' == '1' goto Game

if '%choice%' == '2' goto Hint

:Hint

cls

echo An animal that has fur and night vision

pause

goto game

:Win1

cls

echo Correct!!

Pause

goto Game2

:Game2

cls

echo Guess a word! set /p word=

if '%word%' == 'turtle' goto Win1

cls

echo Incorrect!!

echo 1)Guess Again

echo 2)Hint set /p choice=

set /p choice= if '%choice%' == '1' goto Game2

if '%choice%' == '2' Hint2 :Hint2

cls

echo It is slow and live very long.

pause

goto game2

:Win1

cls

echo Correct Again!!

Pause

goto Game3

:Game3

cls

echo Guess a word!

set /p word= if '%word%' == 'Christmas' goto Win3

cls

echo Incorrect!!

echo 1)Guess Again

echo 2)Hint

set /p choice= if '%choice%' == '1' goto Game3

if '%choice%' == '2' Hint3

:Hint3

cls

echo Kid's favorite holiday! Don't foget the capital! pause goto game3

:Win3

cls

echo Wow! Your world of words are on fire!

Pause

goto Game4

:Game4

cls

echo Guess a word!

set /p word= if '%word%' == 'chair' goto Win4

cls

echo Incorrect!!

echo 1)Guess Again

echo 2)Hint

set /p choice= if '%choice%' == '1' goto Game4

if '%choice%' == '2' Hint4

:Hint4

cls

echo Something you sit on

pause goto game4

:Win4

cls

echo Weeeee!

pause

goto Round2

:Round2

cls

echo Haha! Guess two words! ex. honey-bees

set /p word= if '%word%' == 'honey-bees' goto wern

cls

echo Incorrect!!

echo 1)Guess Again echo

2)Hint

set /p choice= if '%choice%' == '1' goto Round2

if '%choice%' == '2' Hintx

:Hintx

cls

echo The answer in right[or maybe left] in front of you.

pause goto Round2

:wern

cls

echo Correct!!

Pause

goto Rgame

:Rgame

cls

echo remember your name! And do no more!

set /p word= if '%word%' == '' goto Rwind

cls

echo Incorrect!!

echo 1)Guess Again

echo 2)Hint

set /p choice= if '%choice%' == '1' goto Rgame

if '%choice%' == '2' hintss

:hintss

cls

echo I told you to think and do no more returning to previous level

pause goto Round2

:Rwind

cls

echo knocking out Pause

goto Start

Step 3: Save As a .bat File

save it as a name that has .bat on the end.

<p>That's a good begining :)</p><p>now, you have to think with &quot;loop&quot; (try to look at &quot;for next&quot; or &quot;do while&quot;)</p><p>use more variable (guess1,guess2,guess3)</p><p>and use function</p><p>like : </p><p>guess1=cat</p><p>guess2=turtle</p><p>guess3=christmas</p><p>....</p><p>hint1=...</p><p>hint2=...</p><p>hint3=...</p><p>...</p><p>Switch a</p><p>case a==1<br></p><p>a=function_guess(guess1,hint1,2)</p><p>case a==2<br></p><p>a=function_guess(guess2,hint2,3)</p><p>case a==3<br></p><p>a=function_guess(guess3,hint3,4)</p><p>case a==4</p><p>echo &quot;congrats, game is now over&quot;</p><p>stop</p><p>end switch</p><p>function function_guess(toguess,thehint,futureA)</p><p>guess:</p><p>cls</p><p>echo &quot;type your word or Hint for an Hint'</p><p>set /p word= </p><p>if '%word%' == toguess goto Exit</p><p>if '%word%' == 'Hint' echo thehint</p><p>goto guess</p><p>exit:</p><p>return futureA</p><p>end function</p><p>This<br> code is not good as it... it's only to give you some way to do it with <br>thing you can understand (i'm not anymore as good as i was in basic :p )</p>
<p>Thanks for sharing :)</p>

About This Instructable

24views

0favorites

Bio: I'm just a kid who had some imagination (or not) to share with
More by turtletomy:Lego Top Ways To: Ignore the World Ways To: Getting What You Want. 
Add instructable to: