Module 11 · In your browser · challenge 2 of 2 in this lesson
Build and grade the atomic party matchmaker
A code cell with the real Luau runner grades it. No Studio needed.
Open
Level 3, Professional
Challenge
Pass the browser cell above (and optionally challenges/capstone_party_queue.luau in Studio). Solution: challenges/solutions/capstone-systems.md.
- Start from
- The game at milestone m14 (download)
- Check it here
- Run the code cell; the challenge completes when it passes. No Studio needed.
- Or grade it in Studio
- In Studio, press Play, then run
game.ServerScriptService.RunGameTests:Invoke("capstone_party_queue", "capstone-party-queue")in the server command bar. Copy the pass code from Output.
Done means
- A 3-player party followed by a 2-player party and a solo produces match {1,2,3,6} and leaves {4,5} waiting intact
- After waitSeconds, a partial group with at least minPlayers launches; a group below minPlayers stays waiting
- An oversized party (> maxSize) stays in waiting and does not block smaller parties behind it
- Duplicate userIds across or inside parties count once (first appearance wins), and caller input tables are never mutated