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++)) ((i++))
done done
if [ $i -eq $length ]; then if [ $i -eq $length ]; then
echo "you win!" echo "you win! The answer was $length!"
else else
echo "you lose" echo "you lose"
echo "You guessed $i. the actual number was $length." echo "You guessed $i. the actual number was $length."