sudoku: main: solve grids using heuristics

This commit is contained in:
Bruno BELANYI 2020-12-22 17:53:48 +01:00
parent e89f6bdf51
commit 547972417b

View file

@ -1,7 +1,18 @@
#include <stdio.h> #include <stdio.h>
int main(void) { #include "constraints.h"
puts("Hello world"); #include "solver/solve.h"
#include "sudoku.h"
return 0; int main(void) {
struct sudoku grid;
if (!parse_grid_file(&grid, stdin))
return 1;
solve(&grid);
print_grid(&grid, stdout);
return !solved(&grid);
} }