X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/a8c8847b94f2f07c350a331dfcbedbebef5b5c82..118473f595a49e20a818ed7253d58fdfacaa7a86:/pegs.c diff --git a/pegs.c b/pegs.c index 0874d1d..0709187 100644 --- a/pegs.c +++ b/pegs.c @@ -178,9 +178,9 @@ static game_params *custom_params(config_item *cfg) return ret; } -static char *validate_params(game_params *params) +static char *validate_params(game_params *params, int full) { - if (params->w <= 3 || params->h <= 3) + if (full && (params->w <= 3 || params->h <= 3)) return "Width and height must both be greater than three"; /* @@ -189,7 +189,7 @@ static char *validate_params(game_params *params) * soluble. For the moment, therefore, I'm going to disallow * them at any size other than the standard one. */ - if (params->type == TYPE_CROSS || params->type == TYPE_OCTAGON) { + if (full && (params->type == TYPE_CROSS || params->type == TYPE_OCTAGON)) { if (params->w != 7 || params->h != 7) return "This board type is only supported at 7x7"; }