Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Word numbers are incorrect #12

Closed
wom-bat opened this issue Aug 14, 2022 · 2 comments
Closed

Word numbers are incorrect #12

wom-bat opened this issue Aug 14, 2022 · 2 comments

Comments

@wom-bat
Copy link
Contributor

wom-bat commented Aug 14, 2022

Try this:

from blacksquare import *

xw =  Crossword(15, display_size_px=200)
for x in [(0,0), (1,0), (3,0), (5,0), (7,0), (9,0), (11,0),(13,0),
               (5,1),
               (1,2), (3,2), (5,2), (7,2), (9,2), (11,2), (13,2),
               (7,3),
               (1,4), (3,4), (5,4), (7,4), (9,4), (11,4), (13,4), (14,4),
               (5,5),
               (1,6), (3,6), (4,6), (5,6), (6,6), (7,6), (9,6), (11,6), (12,6), (13,6),
               (7,7)]:
    xw[x] = BLACK
    xw.pprint(numbers=True)

I expect '2' (for 2-down) in the 4th square from the left in the top row. Instead it's where it's blocked by a black square.
The grid is the one used by Guardian Crossword No 28,834 https://www.theguardian.com/crosswords/cryptic/28834

@pmaher86
Copy link
Owner

I should probably specify in the docs, but I hadn't intended to cover cryptic crosswords--the assumption in a standard (American?) crossword is that every cell is checked.

@wom-bat
Copy link
Contributor Author

wom-bat commented Aug 21, 2022

I think it's a worthwhile addition anyway --- the every-light-checked case will still work.

@pmaher86 pmaher86 closed this as completed Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants