Find out if guessed number is higher, lower or equal to Random number, or guessed before etc
<p>I'm developing a guess number in ASP.NET and send a guessed number from a textbox to this method:</p>

<pre><code>public Outcome MakeGuess(int guess)
    {
        //Most of this code can be wrong
        if (Number &gt; 1 &amp;&amp; Number &lt; 100)
        {
            foreach (int number in PreviousGuesses)
            {

            }
            if (Number == guess)
            {
                return Outcome.Correct;
            }
            else if (Number &lt; guess)
            {
                return Outcome.High;
            }
            else if (Number &gt; guess)
            {
                return Outcome.Low;
            }
        }
        else
        {
            throw ArgumentOutOfRangeException;
        }
</code></pre>

<p>And have an Enum who looks like this:</p>

<pre><code>enum Outcome
    {
        Indefinite,
        Low,
        High,
        Correct,
        NoMoreGuesses,
        PreviousGuess
    }
</code></pre>

<p>I should find out if the guess is too low, too high, right guess, an earlier made guess (checking from a list), or if the user has used all tries(checking a constant). I Started trying but i'm stuck! My code may be wrong.</p>
