Module 15 · In your browser · challenge 3 of 3 in this lesson
Finds and fixes the three planted bugs in decidePrototype without rewriting its structure
A code cell with the real Luau runner grades it. No Studio needed.
Open
Level 2, Builder
Challenge
A teammate wrote the kill gate for the Beacon Relay soft test, and it already sent one prototype to the archive by mistake. The written rules are in the comment. Three bugs make the code disagree with them. Find and fix all three so every test report passes.
- Start from
- A teammate's buggy kill gate in the Luau cell below (runs in your browser)
- Check it here
- Run the code cell; the challenge completes when it passes. No Studio needed.
Done means
- Finds and fixes the three planted bugs in decidePrototype without rewriting its structure
- A sample below targets.minPlayers returns 'need_data' even when its rates look fatal
- A rate exactly equal to its target counts as a pass, and D1 below 60% of target (not 50%) returns 'kill'
- Every test report in the tests block passes, including the 28-player soft test from the predict question