How perfluorohexyloctane/excellence works
Excellence is a browser-based treasure-hunt game. Players browse available hunts, choose one, create or resume a session, answer or skip questions, and view the leaderboard. The sampled controllers show hunt-list retrieval and rendering, game-session/API handling, and cookie-backed session state; the service worker caches app files for offline use. Other page names indicate additional screens, but their behavior is not established by the excerpts, so their connections are left out.
Main entry points: list.js Hunt list · apiFetcher.js Session and questions · cookies.js Session cookies · serviceWorker.js Offline cache handler
Components 13
Hunt discovery
- Hunt list
js/list.js - Hunt selection screen
list.html - App screen
app.html - Challenges screen
challenges.html
Gameplay
- Session and questions
js/apiFetcher.js - Session cookies
js/cookies.js - Game screen
start.html - Leaderboard screen
leaderboard.html - Notes screen
notes.html
Offline support
- Offline cache handler
js/serviceWorker.js - Browser cache
Other components
- Player
- CodeCyprus API
Connections 9
- Player → Hunt list: browses hunts
js/list.js - Hunt list → CodeCyprus API: fetches hunts
js/list.js - Hunt list → Game screen: links to game
js/list.js - Player → Session and questions: plays hunt
js/apiFetcher.js - Session and questions → CodeCyprus API: starts and plays
js/apiFetcher.js - Session and questions → Session cookies: uses session state
js/apiFetcher.js - Hunt list → Session cookies: checks saved session
js/list.js - Session and questions → Leaderboard screen: redirects on completion
js/apiFetcher.js - Offline cache handler → Browser cache: stores and serves files
js/serviceWorker.js