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

Zeroes behave unexpectedly in crossnumber puzzles. #114

Open
davmillar opened this issue Jun 26, 2020 · 2 comments
Open

Zeroes behave unexpectedly in crossnumber puzzles. #114

davmillar opened this issue Jun 26, 2020 · 2 comments

Comments

@davmillar
Copy link

I tried loading a crossnumber puzzle in IPUZ format. When revealing the solution, no cells that should've had zeroes were filled. Entering zeroes manually caused the application to state that I entered incorrect letters. Attached is the IPUZ file as an example.(Renamed to TXT due to GitHub constraints.)

numcross_2014_11_27.txt

@mrichards42
Copy link
Owner

Hi David -- it looks like the ipuz spec defines 0 as an empty value by default (and the file you attached includes "empty": "0")

By default, a 0 (or "0") value is used to represent an empty cell or value. If the puzzle needs a cell or value of 0, it must define a different value for empty. Some programs may wish to always define an empty value.

So you should be able to set the empty value to something else that isn't used in the puzzle, like "%", and have the 0 cells work correctly.

@davmillar
Copy link
Author

davmillar commented Jun 26, 2020 via email

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