A: Repeat until the game is won

#!/bin/bash

## Starting message
echo "Welcome to the Guessing Game."

## Initialize our variables
number=$RANDOM
guess=0

## Repeat until the game is won
while [ $guess -ne $number ] ; do

    ## Get the next guess
    echo "What is your guess?"
    read guess

    ## Respond with the hint
    echo -n "Your guess of $guess is "
    if [ $guess -eq $number ] ; then
        echo "corrent."
    elif [ $guess -lt $number ] ; then
        echo "too low."
    elif [ $guess -gt $number ] ; then
        echo "too high."
    fi

done