JaredReisinger / react-crossword

A flexible, responsive, and easy-to-use crossword component for React apps.
https://react-crossword.jaredreisinger.com
MIT License
168 stars 80 forks source link

Cell Overwritten at Junction #556

Closed rapidsandeepkulkarni closed 8 months ago

rapidsandeepkulkarni commented 10 months ago

When two words start at the same cell, e.g. words GITHUB, GOOGLE if the 1st letter is considered as a point of junction and GITHUB is to be arranged horizontally with clue no. 2 and GOOGLE is to be arranged vertically with clue no. 3 then the crossword cell should show 2, 3 in the cells instead of just 2 or 3. This may be confusing for the players attempting 1st time or if the crossword is converted to a printable format image

JaredReisinger commented 8 months ago

The standard convention for crosswords (in the US, at least, which this was designed for) is that starting cells only ever have one number, and are disambiguated as "across" and "down". In your example, GITHUB would be "2-across", and GOOGLE would be "2-down". Note that this means that the list of across clues (and of down clues) will skip some numbers (i.e., there may be no "3-across" or "7-down", say). https://en.wikipedia.org/wiki/Crossword#Notation provides a lackluster explanation, but the crucial detail is:

the standard became that in which only the start squares of each word were numbered, from left to right and top to bottom

So every start square, regardless of direction, gets a single number, and they increase as you scan the cells left-to-right and then top-to-bottom. The video https://www.youtube.com/watch?v=tG-s9FC7Z0E&ab_channel=ExpertVillageLeafGroup also shows this.

rapidsandeepkulkarni commented 8 months ago

Agreed @JaredReisinger, In India we have a convention of showing two no.s separated by a comma. Luckily I could make that change in my use-case by editing the Cell.ts. And everything is working fine now! Thanks for developing this excellent module.