I’m making this Sudoku in Unity3D project and I’m currently stuck on making the application check whether or not there are duplicate values in the specific row and column where the number has been inputted. I can provide the GenerateGrid script, so you can familiarise yourself with the code, as well as the way the subgrids are generated if needed.
I need to make the code:
– Check the columns to see that there are no duplicate values (no two of the same number in one grid)
– Check the rows to see that there are no duplicate values (no two of the same number in one grid)
What I have tried:
– Making 2 arrays, one for the rows and one for the columns
– Making 1 2D array for both the rows and the columns
Read more here: Source link