Closed JohnHKoh closed 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
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.