Module 14 · In your browser · challenge 1 of 3 in this lesson

gap == 2 triggers grace_used when lastGraceDay is nil or today - lastGraceDay is at least 7

A code cell with the real Luau runner grades it. No Studio needed.

Open

Luau
Ctrl Enter runs the cell. Checked by tests

Level 1, Apprentice

Challenge

Fix advanceStreak in the streak-fix cell so a single missed day invokes the forgiving grace window on a 7-day cooldown.

Start from
The game at milestone m14 (download)
Check it here
Run the code cell; the challenge completes when it passes. No Studio needed.

Done means

  • gap == 2 triggers grace_used when lastGraceDay is nil or today - lastGraceDay is at least 7
  • Using grace increments count and records lastGraceDay = today
  • All four assertions in streak-fix pass