From 15164c7481a40fb55a99729190f14ca214b25550 Mon Sep 17 00:00:00 2001 From: simon Date: Sat, 6 Aug 2005 10:38:34 +0000 Subject: [PATCH] Document hard mode in Slant, and also fix an obvious memory management error in game_configure(). git-svn-id: svn://svn.tartarus.org/sgt/puzzles@6169 cda61777-01e9-0310-a592-d414129be87e --- puzzles.but | 11 +++++++++++ slant.c | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/puzzles.but b/puzzles.but index e11ee67..3240bc0 100644 --- a/puzzles.but +++ b/puzzles.but @@ -1485,6 +1485,17 @@ These parameters are available from the \q{Custom...} option on the \dd Size of grid in squares. +\dt \e{Difficulty} + +\dd Controls the difficulty of the generated puzzle. At Hard level, +you are required to do deductions based on knowledge of +\e{relationships} between squares rather than always being able to +deduce the exact contents of one square at a time. (For example, you +might know that two squares slant in the same direction, even if you +don't yet know what that direction is, and this might enable you to +deduce something about still other squares.) Even at Hard level, +guesswork and backtracking should never be necessary. + \C{lightup} \i{Light Up} diff --git a/slant.c b/slant.c index 38670e1..9c0b0ab 100644 --- a/slant.c +++ b/slant.c @@ -171,7 +171,7 @@ static config_item *game_configure(game_params *params) config_item *ret; char buf[80]; - ret = snewn(2, config_item); + ret = snewn(4, config_item); ret[0].name = "Width"; ret[0].type = C_STRING; -- 2.11.0