mirror of
https://github.com/tiennm99/vngeoguessr.git
synced 2026-10-11 03:13:56 +00:00
The debug routes returned panorama coordinates by id and by region to anyone, which is the answer to a live round; in production they now answer only a request carrying DEBUG_ACCESS_KEY, and the bbox tester that proxied Mapillary's failing search is removed. /api/guess checks the username against the one rule the name prompt uses, rejects non-finite coordinates before consuming the session, and names why a submit failed. Session ids that are not UUIDs are replaced on new-game and rejected on skip. Score boards are no longer trimmed to 200: trimming deleted the running total of anyone below the cut, so once 200th place held more than one round's points no new player could ever get on. Scores are added with ZINCRBY so concurrent rounds under one name both count. The distance record is best-effort after scoring, so a distance failure no longer reports a scored round as unsaved. Two Redis keys per day count rounds by picked level and score and distinct players; npm run stats prints them.