i'm currently coding my own Sudoku in Windows Forms C# and I currently have Problems how to check if an integer is already in my list.
for (int i = 0; i < 9; i++)
{
List<int> list = new List<int>();
for(int j = 0; j < 9; j++)
{
list.Add(sodukuPlayfield.grid[i, j]);
}
}
So I add all the number in a row to a list. But after that I wanna check if there is only one number from 1 - 9. How can I solve this?
Thank you.