CREATING A GUESSING GAME WITH A BATCH FILE:-
1. Open NOTEPAD
2. Copy the following scripts
code:-
@echo off
color 0b
title Guessing Game by Animation link
set /a guessnum=0
set /a answer=%RANDOM%
set variable1=surf33
echo --------------------------------------------------------
echo This is a Guessing Game Made in Notepad!!!
echo What Number Am I thinking of?
echo --------------------------------------------------------
echo.
:top
echo.
set /p guess=
echo.
if %guess% GTR %answer% ECHO Lower!
if %guess% LSS %answer% ECHO Higher!
if %guess%==%answer% GOTO EQUAL
set /a guessnum=%guessnum% ECHO Found the backdoor hey?, the answer is: %answer%
goto top
:equal
echo congratulation, You guessed right!!
echo.
echo it took you %guessnum% guesses.
echo.
pause
After paste this code save as game.bat
play this game
thanks you!!!!!
for visit my site.
Comments
Post a Comment