viresh-ratnakar / exolve

Online interactive crossword software in JavaScript
MIT License
73 stars 15 forks source link

consider using # for black and . for no solution #1

Closed martindemello closed 5 years ago

martindemello commented 5 years ago

Alphanumeric characters like 0 are often used in rebus grids.

viresh-ratnakar commented 5 years ago

The .puz ascii format uses . for black and many people use it (I have some files too). Agree about 0 though. Hmm. I've already used _, |, +, @, *.

Maybe $ for no solution?

I'll also need to tweak my state-saving code if I make this change.

martindemello commented 5 years ago

yeah, or maybe + or ? (though ? looks a bit ugly)

viresh-ratnakar commented 5 years ago

Can you point to to an example rebus with 0s? Perhaps I can solve this some other way ..

martindemello commented 5 years ago

not offhand, but i've defnitely done american style crosswords where some of the squares were numbers (and symbols, for that matter). the hard part is you need a way to represent a partially filled in grid, so you have to pick one character to be the "unfilled square" character, and is awkward to use.

viresh-ratnakar commented 5 years ago

OK. I think I should perhaps be able to handle them by forcing the setter to somehow "escape" the 0 in the exolve format, given that these are uncommon. But please send me an example whenever you run into one next, thanks!

viresh-ratnakar commented 5 years ago

Closing this. I'll deal with handling support for saving/indicating 0s as entries using some escape sequence.