Solving the KAYAK crossword puzzle with code(github.com) |
Solving the KAYAK crossword puzzle with code(github.com) |
We're cleaning up the code now for release as an AI paper, so as soon as we're done I'll release the code on Github.
Cryptic crosswords (at least good ones) play with conventions so much, I imagine it must be quite a challenge.
0. Download and install Tesseract https://code.google.com/p/tesseract-ocr/
1. Crop and adjust curves of the image in Paint.Net (= get a better contrast) to ease OCR
2. Save as PNG in the folder of Tesseract
3. Open cmd in Tesseract folder, type tesseract kayak.png kayak (produces kayak.txt)
4. Open kayak.txt in Notepad++, remove empty lines (to have correct indexes), CTRL+F "KAYAK"
(Well, for a palindrome, it works for east-to-west too - so I guess you missed 6).
(on a sidenote, you're counting is incorrect, as it is a palindrome there really is only 4 directions for the word to appear: W-E, N-S, NW-SE, NE-SW)
AAYKAKAYKAYYKKAAKAYAAAYKYKYAYK
KYYAKYAAAYKAAKKYAKKKAAAKAAYKAA
KKKYAKAKAYKKYKKYKKAKYAAAAKAAKK
YKAAKYAAKKKKKAYAYYYYYAAKAAKKKK
KKAYYAAKKYYAYAAKAAKKAAYKAKKAAK
KKAAAKAAAKKAKKKYAAAYKYAYAKYKAA
KKYKAAAAAAAAAAKKAAAKYYAKAKAKKY
KKKKKKAKYYKYYKKAAYAKAAAKYAKKAA
KAKKAKAYKAAYAKYYKKAYKKKAAAAAKA
KKAKAKAKAAAKAYAYKAKAYYAYKKAKYY
AAAYAKKKAKKAKYKAYKKAKKYKAAKKYY
YKKKYKKYAAAKKKKAKAYKKKKKAAKKKY
KKAKAYKAAKAKKYYAKAYAAKYAAAAAAA
AAAAKKYAAKKAAYKKAAAYAYAKYAKAYK
AKKAKKAYKAAYKYKAKYAAKKYKKKKKKA
KYKAAKKYAYKAKKKYKAKAYAYKYAAAKK
KAYYKKAKYKAYAAKAYAAYYYAKKYKYKK
KKKKAKAYAAAKKAYAYKKYAKAAAAYKAY
AYKAKKKAAKAKAYAAAKKYKKAYKAYAYY
KYAYKAYAKAKYYKYKAKAAYKYKKAYKAK
AKAKKAKKAKKKKAAAKYYYYKAKAAAAAK
KAKYYKAKKYKYAKYAAAAAKAKAYAAKKA
KKAAAKKAKAKKAAKAYAAYAAAKKAAYYA
KAKKYYKKAYAYKKAKKYYKYKYKKAAAKAhttp://games.usvsth3m.com/one-word-wordsearch/#MTAsS0FZQUssN...