June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
|
|
@ -1,18 +1,7 @@
|
|||
@echo off
|
||||
setlocal EnableDelayedExpansion
|
||||
:begin
|
||||
SET /A rand=%random% %% (10 - 1 + 1)+ 1
|
||||
SET guess=
|
||||
SET /P guess=Pick a number between 1 and 10:
|
||||
set /a answer=%random%%%(10-1+1)+1
|
||||
set /p guess=Pick a number between 1 and 10:
|
||||
:loop
|
||||
IF "!guess!" == "" (
|
||||
EXIT
|
||||
)
|
||||
SET /A guess=!guess!
|
||||
IF !guess! equ !rand! (
|
||||
ECHO Well guessed^^!
|
||||
EXIT
|
||||
)
|
||||
SET guess=
|
||||
SET /P guess=Nope, guess again:
|
||||
GOTO loop
|
||||
if %guess%==%answer% (echo Well guessed!
|
||||
pause) else (set /p guess=Nope, guess again:
|
||||
goto loop)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue