shithub: puzzles

Download patch

ref: c3d1982dcb2de62ea2eb79e01eda8106d3335042
parent: 98a9f06a6704192c983f1d40100dd41714331bf2
author: Simon Tatham <anakin@pobox.com>
date: Sat Aug 6 06:38:34 EDT 2005

Document hard mode in Slant, and also fix an obvious memory
management error in game_configure().

[originally from svn r6169]

--- a/puzzles.but
+++ b/puzzles.but
@@ -1485,6 +1485,17 @@
 
 \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}
 
--- a/slant.c
+++ b/slant.c
@@ -171,7 +171,7 @@
     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;