represents which squares are white and black in a grid
[
[1,1,1],
[1,0,1],
[1,1,1]
];
represents what letters are where in a grid. Note that black squares will just be empty strings
[
['D','O','G'],
['A','','O'],
['B','A','D']
];
represents an answer to a single clue. It will never contain punctuation
['D','O','G']
represents a clue. clues
is an array of these objects.
var clue = {
length:5,
number:9,
position:[1,0], // starting co-ordinates
isAcross:true
punctuation:['','','-','',''] // can contain dashes or underscores for spaces
};
TODO:
- suggestions for words when creating a crossword using word list
- support for delete / left arrow in InputWord component
- other punctuation (e.g. apostrophes)