I have to create a program that allows a user to fill in a (partial) Latin Square of order 4. You can use 0's to represent empty cells. The user will give the number to place, the row and column. The number should only be placed if it does not violate the properties of a partial Latin Square and it shouldn't rewrite numbers that have already been placed.
I am now checking the rows to see if a number is allowed in that row (that number is not present in that row)