Added the length to win message.

This commit is contained in:
Storm Dragon 2018-05-09 20:54:20 -04:00
parent 2203a30aa4
commit 4872c92ca0

View File

@ -43,7 +43,7 @@ read -sn1 -t .6 guess || guess="win"
((i++))
done
if [ $i -eq $length ]; then
echo "you win!"
echo "you win! The answer was $length!"
else
echo "you lose"
echo "You guessed $i. the actual number was $length."