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++))
|
((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."
|
||||||
|
Loading…
Reference in New Issue
Block a user