ConorSheehan1 / spelling-bee

Free open source version of the New York Times Spelling Bee game
https://spelling-bee-free.pages.dev
MIT License
46 stars 26 forks source link

script to verify puzzle order hasn't changed #17

Closed ConorSheehan1 closed 1 year ago

ConorSheehan1 commented 1 year ago

After making sorting idempotent #13 the chance is reduced, but we could still add words which push a puzzle over the minimum 20 word threshold, creating a new puzzle, and displacing old ones. If this pushes the current or previous puzzle, we could end up with issues.

To avoid this, create a script to run after generating puzzles that confirms the puzzles for yesterday, today, and optionally tomorrow have not changed.