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

Design it: the two-lever beacon repair

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

Add the missing rule to isRepaired in the lever-rules cell so one player can never repair the beacon alone.

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

  • isRepaired returns false when the same userId holds both levers
  • The two-player, window, stale and departed-player cases still behave as before
  • All five tests in lever-rules pass