i'm new to prolog and I want to solve the puzzle Akkoy with restrictions. So far, i've been able to implement wich cells can be painted but i don't know how to force the white areas to have all the same area.
For now when solving the problem, prolog gives two answers, but I want only the first one.
akkoy_solver(Rows, Cols) :-
length(Rows, X),
length(Cols, Y),
make_grid(Grid, X, Y, Vars),
reset_timer,
solver(Rows, Cols, Grid),
label(Vars),
printAkkoy(Grid, Rows, Cols),
print_time,
statistics, nl.