Generate a crossword (crucigrama)
crosswordLays out a crossword from words with clues. Returns two matrices of the same size: puzzle (the game position: "-" is a blank cell, a word's number is on its first cell, "0" marks the other cells where a letter goes, and "a/d" such as "3/4" appears when an across word and a down word start in the same cell) and solution (the same matrix with the correct letters, one grapheme per cell). placements lists every word with its number, clue, direction (across/down) and start cell; unplaced lists words that did not fit. Offer more words than you need: the engine keeps the best layout it finds. Native letters (Ñ, Ç, ẞ…) stay one cell each. Free, no usage limit. The same seed gives the same crossword.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cols | No | Largest width. Default: rows. | |
| open | No | Marker of letter cells that do not start a word in puzzle. Default "0". | |
| rows | Yes | Largest height; the result is cropped to what it uses. | |
| seed | No | Repeatable crossword. | |
| block | No | Marker of blank cells. Default "-". | |
| entries | Yes | Words with their clues. | |
| attempts | No | Layouts to try (default 30); more attempts, denser crossword. | |
| classicMode | No | Strip accents (ñ becomes N). |