Module 6 · Check it yourself · challenge 1 of 2 in this lesson
DataService saves every player's profile on a timer shorter than LOCK_SECONDS without releasing the lock (for example, raise LOCK_SECONDS to 180 and save every 120 seconds, or save every 30 seconds for the 45-second lock)
You compare your work with the list of what done means.
Open
Level 2, Builder
Challenge
Add the autosave DataService is missing, so its lock stays fresh during long sessions.
- Start from
- The game at milestone m06 (download)
Done means
- DataService saves every player's profile on a timer shorter than LOCK_SECONDS without releasing the lock (for example, raise LOCK_SECONDS to 180 and save every 120 seconds, or save every 30 seconds for the 45-second lock)
- The loop skips players whose key is not savable
- A save failure only warns; the loop keeps running
Meet the criteria above, then record your own result. No test grades this check.