Added the length to win message.
This commit is contained in:
parent
2203a30aa4
commit
4872c92ca0
@ -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."
|
||||
|
Loading…
Reference in New Issue
Block a user