I have two lists that I need to compare:

```
var list = new Guess(guesses, 0 , 0);// see class for constructor

```

and

```
theGame.Target = guesses;
var list2 = theGame.Target;

```

I need to do the following:

`GuessTheDigits` Sets The Number Of `RightDigitsInTheRightPosition` Correctly

**GuessTheDigits:**

```
public ActionResult GuessTheDigits(List<int> guesses)
{
    GuessingGame theGame = this.Session["GameState"] as GuessingGame;

    // pass to the method
    theGame.GuessTheHiddenDigits(guesses);

    //set the lists
    var list = new Guess();

    theGame.Target = guesses;

    var list2 = theGame.Target;

    //need to compare lists here

    // Redirect to action
    return RedirectToAction("Index", theGame.Guesses);
}

```

**Classes as follows:**

**Guess Class**

```
public class Guess
{
    public Guess()
        : this(new List<int>() { 1, 2, 3 }, 0, 0 )
    {

    }
    public Guess(List<int> guesses, int rdrp, int rdwp)
    {
        this.Digits = guesses;
        this.RightDigitRightPosition = rdrp;
        this.RightDigitWrongPosition = rdwp;
    }

    public Guess(List<int> guesses, int rdrp)
        : this(guesses, rdrp, 0)
    {

    }

    public Guess(List<int> guesses)
       : this(guesses, 0, 0)
    {

    }

    public List<int> Digits { get; set; }
    public int RightDigitRightPosition { get; set; }
    public int RightDigitWrongPosition { get; set; }
}

```

**Previously tried code:**

```
var check = list2.Where(s => !theGame.Guesses.Contains(list));
foreach (var i in check)
{
    list.RightDigitRightPosition = i;
}

```