Create A Guessing Game.
Guessing Game
Here's a good way to pass the time if you're bored via Instructables.
👉 Paste the following into a Notepad doc:
@echo off
color 0e
title Guessing Game by seJma
set /a guessnum=0
set /a answer=%RANDOM%
set variable1=surf33
echo -------------------------------------------------
echo Welcome to the Guessing Game!
echo.
echo Try and Guess my Number!
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% +1
if %guess%==%variable1% ECHO Found the backdoor hey?, the answer is: %answer%
goto top
:equal
echo Congratulations, You guessed right!!!
echo.
echo It took you %guessnum% guesses.
echo.
pause
👉 Save as a .bat file.
👉 Double-click the file. Guess away!
✌Don’t forget to share this post with your friends and leave a comment below. join our telegram channel,facebook page,twitter page and whatsapp group.Thank you.
Comments
Post a Comment