downforacross / downforacross.com

Web frontend for downforacross.com -- continuation of stevenhao/crosswordsio
https://downforacrosscom.downforacross1.now.sh
MIT License
222 stars 92 forks source link

Update logic for setting initial selected squares #208

Closed JohnHKoh closed 2 years ago

JohnHKoh commented 2 years ago

Updates logic for setting the initially selected squares on puzzle load.

Selects first available 'across' clues, and then first available 'down' clues. Defaults to selecting {0,0} if none found. For example, if a puzzle does not have 1A, but has 4A (see https://downforacross.com/beta/game/1083156-trag), the 4A squares will be selected on page load.

Handles edge cases where puzzles: -Don't have 1A clue -Don't have any across clues -Don't have any clues (though we should not allow such puzzles to be uploaded in the first place)

Should address #199 and #203.

vercel[bot] commented 2 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/downforacross/downforacross.com/G5cSsXmCXLTwL7JqebN8XAJRxVFR
✅ Preview: https://downforacrosscom-git-fork-johnhkoh-johnhk-38410c-downforacross1.vercel.app