Checking validation of entries in a Sudoku game written in Java
- by Mico0
I'm building a simple Sudoku game in Java which is based on a matrix (an array[9][9]) and I need to validate my board state according to these rules:
all rows have 1-9 digits
all columns have 1-9 digits.
each 3x3 grid has 1-9 digits.
This function should be efficient as possible for example if first case is not valid I believe there's no need…