2016 Update

This commit is contained in:
Tina Müller 2016-12-05 22:15:40 +01:00
parent 948b86eafa
commit dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions

View file

@ -1,26 +1,18 @@
@ECHO OFF
@echo off
setlocal EnableDelayedExpansion
SET max=10
SET min=1
:begin
SET /A rand=%random% %% (max - min + 1)+ min
SET /A rand=%random% %% (10 - 1 + 1)+ 1
SET guess=
SET /P guess=Pick a number between 1 and 10:
:loop
IF "!guess!" == "" (
GOTO end
EXIT
)
SET /A guess=!guess!
IF !guess! equ !rand! (
ECHO Well guessed^^!
GOTO end
EXIT
)
SET guess=
SET /P guess=Nope, guess again:
GOTO loop
:end
ENDLOCAL