andrewhl / crossword

MIT License
0 stars 0 forks source link

Generation Algorithm #1

Open guzart opened 8 years ago

guzart commented 8 years ago

Word

Consecutive white tiles with a minimum length of 4 tiles up to 15 tiles.

Space

Consecutive black times with a length from 1 to 4 tiles.

Word Row Pattern

Column Pattern

Algorithm

  1. Assign word row patterns to the top 7 rows
  2. Symmetricalize: copy top 7 rows to bottom 7 in reverse order
  3. Assign column patterns to the alternating columns
guzart commented 8 years ago

Example where every column has a word.

https://upload.wikimedia.org/wikipedia/commons/thumb/e/ed/British_crossword.svg/220px-British_crossword.svg.png

Example where alternated columns have words

https://commonercryptics.files.wordpress.com/2010/11/cryptic-crossword-201.jpg

Example where first row and first column start with spaces

https://commonercryptics.files.wordpress.com/2010/12/crossword-23.jpg