aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pearl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pearl.c b/pearl.c
index 4817416..e53b4da 100644
--- a/pearl.c
+++ b/pearl.c
@@ -274,6 +274,8 @@ static const char *validate_params(const game_params *params, bool full)
if (params->h < 5) return "Height must be at least five";
if (params->difficulty < 0 || params->difficulty >= DIFFCOUNT)
return "Unknown difficulty level";
+ if (params->difficulty >= DIFF_TRICKY && params->w + params->h < 11)
+ return "Width or height must be at least six for Tricky";
return NULL;
}