X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/e6a5b1b70d835abd16a203f30a61cc48939e704c..44bf5f6fb23fec37056c36580bb4e02fdf610915:/map.c diff --git a/map.c b/map.c index 3697233..45d6329 100644 --- a/map.c +++ b/map.c @@ -1239,8 +1239,8 @@ static char *new_game_desc(game_params *params, random_state *rs, * Finally, check that the puzzle is _at least_ as hard as * required, and indeed that it isn't already solved. * (Calling map_solver with negative difficulty ensures the - * latter - if a solver which _does nothing_ can't solve - * it, it's too easy!) + * latter - if a solver which _does nothing_ can solve it, + * it's too easy!) */ memcpy(colouring2, colouring, n*sizeof(int)); if (map_solver(sc, graph, n, ngraph, colouring2, @@ -1248,7 +1248,7 @@ static char *new_game_desc(game_params *params, random_state *rs, /* * Drop minimum difficulty if necessary. */ - if (mindiff > 0 && (n < 9 || n > 3*wh/2)) { + if (mindiff > 0 && (n < 9 || n > 2*wh/3)) { if (tries-- <= 0) mindiff = 0; /* give up and go for Easy */ }