|
|
|
|
|
by keini
165 days ago
|
|
Technical notes on Daily Challenge + Leaderboards (Game Center):
Daily Challenge is a deterministic puzzle-of-the-day: I rotate a fixed daily level (or seed → level index) on a UTC-day boundary, so everyone plays the same puzzle worldwide. For leaderboards I’m using Apple Game Center (GKLeaderboard). Score is based on a simple, transparent metric (e.g. moves/steps/time) and the puzzle rules are deterministic (no RNG), so runs are comparable. Implementation details:
- A compact level encoding (grid size + constraints) → fast load + consistent replay
- Local validation of moves + completion (no “guessing” solutions)
- A lightweight caching layer so the daily puzzle loads instantly and works well even with spotty connectivity
- If you’re curious, I can share how I estimate difficulty using a solver step-count and how I prevent daily challenge “desync” across time zones/devices. Happy to answer any questions about Game Center setup / leaderboard scoring / daily rotation strategy. |
|