Module 11 · In Studio · challenge 3 of 3 in this lesson

cut reserves every must first, keeps other tasks in order while they fit, skips one that does not and keeps walking, and returns nil when the musts alone do not fit

A test in Studio grades it and prints a pass code.

Open

Level 3, Professional

Challenge

Write the three functions in challenges/work/launch_plan.luau. The test is challenges/producing-a-live-game.luau and the written solution is challenges/solutions/producing-a-live-game.md. Run it with the command in the footer.

Start from
The game at milestone m14 (download)
Grade it
In Studio, press Play, then run game.ServerScriptService.RunGameTests:Invoke("producing-a-live-game", "producing-roadmap-verdict") in the server command bar. Copy the pass code from Output.

Done means

  • cut reserves every must first, keeps other tasks in order while they fit, skips one that does not and keeps walking, and returns nil when the musts alone do not fit
  • rate returns 0 when the whole is 0 or less
  • verdict checks players, then a missing D7, before any target, and lists crash, d1 and d7 misses in that order
  • challenges/producing-a-live-game.luau prints TEST PASS for every check

The Course Runner prints this code when the test passes.