Step 3: Provide grid and clue data

Puzzle data are kept in a file with the following contents (note the vertical bar | separator on the lines containing more than one number):
5                      Width - the FIRST line in the file
5                      Height
1|0|2|0|3                Lines with grid data - (Height) rows by (Width) columns
0|-1|0|-1|0              Numbering as follows:
4|0|0|0|0                -1s are blackened-out squares
0|-1|0|-1|0              0s are not numbered squares
5|0|0|0|0                other numbers represent numbered squares
3                      Number of clues Across
1|Old-fashioned slogan    Clue number|Clue text
4|Minimum danger          Clue number|Clue text
5|Comes before steady     Clue number|Clue text
3                      Number of clues Down
1|When to say "never"    Clue number|Clue text
2|Karma                  Clue number|Clue text
3|Syncretistic           Clue number|Clue text
SOLUTION                 The word "SOLUTION"
N|U|K|E|M                Solution letters (UPPER CASE!)
E|.|A|.|E                Dots (.) are blackened-out squares
V|I|R|U|S
E|.|M|.|S
R|E|A|D|Y
The explanations on the right, given in BLUE color should not be present in the actual data file.

This file is included in the download under the name "xw.txt". It should be placed in the same directory where your crossword page and the applet will reside.


<- Previous step | Next step ->
Copyright © 1996-2003 Andrei Grigoriev. All rights reserved.