aboutsummaryrefslogtreecommitdiff
path: root/puzzles.but
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2008-04-07 15:56:42 +0000
committerSimon Tatham <anakin@pobox.com>2008-04-07 15:56:42 +0000
commit93103eeca4e41ecaa874069b10f2a3de8c392435 (patch)
treec1958dcac18da3b939f313f552c930305a5e89f8 /puzzles.but
parentd2369aab621c80449db7c589f0c65c722802b8b4 (diff)
downloadpuzzles-93103eeca4e41ecaa874069b10f2a3de8c392435.zip
puzzles-93103eeca4e41ecaa874069b10f2a3de8c392435.tar.gz
puzzles-93103eeca4e41ecaa874069b10f2a3de8c392435.tar.bz2
puzzles-93103eeca4e41ecaa874069b10f2a3de8c392435.tar.xz
Substantial reworking of Solo so that it implements both Sudoku-X
(require both main diagonals to have one of every digit in addition to all the usual constraints) and Jigsaw Sudoku (replace the array of rectangular sub-blocks with the sub-blocks being random polyominoes). To implement the latter, I've moved my `divvy.c' library routine out of the `unfinished' subdirectory. Jigsaw mode is currently an undocumented feature: you enable it by setting the rows parameter to 1 (and the columns parameter to your desired grid size, which unlike normal Sudoku can be anything you like including a prime number). The reason it's undocumented is because generation times are not yet reliably short: sometimes generating a jigsaw-type puzzle can hang for hours and still get nowhere. (The algorithm should terminate in principle, but not in any time you're prepared to wait.) I _think_ I know how to solve this, but have yet to try it. Until then, jigsaw mode will remain a hidden feature. Printing of X-type puzzles is also substandard at present, because the current print-colour API replaces the desired light shading of the X-cells with heavy diagonal hatching. I plan to adjust the API imminently to address this. [originally from svn r7974]
Diffstat (limited to 'puzzles.but')
-rw-r--r--puzzles.but6
1 files changed, 6 insertions, 0 deletions
diff --git a/puzzles.but b/puzzles.but
index 5d41c47..e40a1fe 100644
--- a/puzzles.but
+++ b/puzzles.but
@@ -930,6 +930,12 @@ rows, into which the main grid is divided. (The size of a block is
the inverse of this: for example, if you select 2 columns and 3 rows,
each actual block will have 3 columns and 2 rows.)
+You can introduce an optional extra constraint on the puzzles,
+requiring that the two main diagonals of the grid also contain one
+of every digit. (This is sometimes known as \q{Sudoku-X} in
+newspapers.) In this mode, the squares on the two main diagonals
+will be shaded slightly so that you know it's enabled.
+
You can also configure the type of symmetry shown in the generated
puzzles. More symmetry makes the puzzles look prettier but may also
make them easier, since the symmetry constraints can force more