Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS 

Code Of A Game

This Is A Code Of A Game.

Coppy It Into Notepad And Then Save It As Game.bat

Warning!
Make Sure It Says "All Files (*.*)" And Not "Text Document (.txt)" At The Bottom.
The Code Is:
   1  
   2  @echo off
   3  goto verybegingame
   4  : verybegingame
   5  echo Welcome To This Game!
   6  title Game Start
   7  echo Press Any Key For Stuff.
   8  pause >nul
   9  echo Loading...
  10  ping localhost 6 >nul
  11  echo.. Loading Comple!
  12  pause >nul
  13  cls
  14  echo Rules:
  15  title Game Rules
  16  echo..You Answer Each Question.
  17  echo. If It Is Correct, You Will Move On.
  18  echo If It is InCorrect, The Program Will
  19  echo Exit And You Will Need To Try Again.
  20  echo.. If You Get All The Questions Right, You
  21  echo Will Receave A Speical Code.
  22  echo Enter THe Code For A Suprse!
  23  echo...
  24  echo Good Luck!
  25  echo.....
  26  echo Press A Key Of An Option, And Then 
  27  echo Press 'Enter'.
  28  echo...
  29  echo                        1 = Play Game          2 = Enter Code
  30  SET /P "onechoose1=Enter 1 or 2 option here:"
  31  If %onechoose1%= 1 then goto playgame
  32  If %onechoose1%= 2 then goto entercode
  33  :playgame
  34  cls
  35  echo What Is My Name?
  36  echo A.Jonathan
  37  echo B.Sam
  38  echo C.Johnn
  39  SET /p "q1=Enter Option:"
  40  If NOT%q1%= A then exit
  41  :entercode
  42  echo  Enter Code
  43  SET /P "codeenter= "
  44  If %entercode%=code... goto prize
  45  :prize
  46  
  47  

All Of ThAT...
MAKE MORE QUESTIONS.
etc.
« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS