I,m having a problem with this script, it is supposed to be a random number guessing game but it wont work. Can anyone tell me why????
here is the code
variable=$(( $$ % biggest ))
while [ $guess -ne $number ]
echo -n "please guess a number"
if [ "$guess" -lt $variable ]
echo "The number is higher than that"
elif [ "$guess" -gt $variable ]
echo "pick a smaller number"
elif [ "$guess" -gt $large ]
echo "number is way to big, always pick lower than 200 or will be here all night!!"
elif [ "$guess" -lt $little ]
echo "Its not a negative number, guess a positive number please"
guesses=$(( $guesses + 1 ))
echo "Finally your got it. your guessed $variable finally in $guesses guesses!"