-
Function for sudoku
I wish to solve a skyscrapers which is a type of sudoku. Currently I print a 4 x 4 grid and populate it with zeros although I do not know how to write a function that correctly fills in all of the numbers based on the constraints and rules of the puzzle.
Code:
int solve_sudoku(int tab[4][4], int value)
{
}
//populate(tab, 4);
//solve_sudoku(tab, 4);
//print_tab(tab, 4);
-
Starting from a valid position and knowing the game rules would be a start.
Skyscraper Sudoku Rules Explained + 5 Tips & Techniques – Mastering Sudoku