Skip to content

Instantly share code, notes, and snippets.

@cosmologicon
Last active January 24, 2020 19:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cosmologicon/918623145c549b9b4968d690550b3662 to your computer and use it in GitHub Desktop.
Save cosmologicon/918623145c549b9b4968d690550b3662 to your computer and use it in GitHub Desktop.
Examples of crossword grid requirements for Daily Programmer #382
7x7 valid
. . . # . . .
. . . # . . .
. . . . . . .
# # . . . # #
. . . . . . .
. . . # . . .
. . . # . . .
11x11 valid
# # # . . . # . . . #
# # . . . . # . . . .
# . . . . . . . . . .
. . . # . . . # . . .
. . . . . # . . . . #
. . . . . # . . . . .
# . . . . # . . . . .
. . . # . . . # . . .
. . . . . . . . . . #
. . . . # . . . . # #
# . . . # . . . # # #
9x9 invalid: does not have 180 degree rotational symmetry
# . . . . . . . #
# . . . . . . . #
# . . . . . . . #
. . . # # # . . .
. . . # # # . . .
. . . # # # . . .
. . . . . . . . .
# . . . . . . . #
# # . . . . . # #
9x9 invalid: white squares do not form a connected component
# # . . . . # # #
# . . . . . # # #
. . . . . . # # #
. . . . . # . . .
. . . . # . . . .
. . . # . . . . .
# # # . . . . . .
# # # . . . . . #
# # # . . . . # #
9x9 invalid: contains words of length 2
# # # . . . . . .
# # . . . . . . .
# . . . . . # . .
. . . . . # . . .
. . . . # . . . .
. . . # . . . . .
. . # . . . . . #
. . . . . . . # #
. . . . . . # # #
9x9 invalid: contains an unchecked square
. . . # # # . . .
. . . . # . . . .
. . . . . . . . .
. . . . . . . . .
# # # # . # # # #
. . . . . . . . .
. . . . . . . . .
. . . . # . . . .
. . . # # # . . .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment