Module 14 · In Studio · challenge 3 of 3 in this lesson
challenges/work/balance_curve.luau computes integer hitsToKill and first-hit-at-t0 minTtkSeconds including zero/invalid edge cases
A test in Studio grades it and prints a pass code.
Open
Level 3, Professional
Challenge
Start from m14-ship in the game repo and implement the pure TTK, sawtooth wave generator and telemetry classifier in challenges/work/balance_curve.luau, then verify with game.ServerScriptService.RunGameTests:Invoke("difficulty-and-balance", "balance-wave-curve").
- Start from
- The game at milestone m14 (download)
- Grade it
- In Studio, press Play, then run
game.ServerScriptService.RunGameTests:Invoke("difficulty-and-balance", "balance-wave-curve")in the server command bar. Copy the pass code from Output.
Done means
- challenges/work/balance_curve.luau computes integer hitsToKill and first-hit-at-t0 minTtkSeconds including zero/invalid edge cases
- waveSpec escalates drones, crawlers and droneSpeed with player-count scaling while turning every 3rd wave into a baseline breather
- waveSpec caps drones at MAX_DRONES (3), crawlers at MAX_CRAWLERS (6) and droneSpeed at MAX_DRONE_SPEED (15.5 < WALK_SPEED)
- classifyTelemetry flags low survival or early death spikes (< 10 s) as too_hard, high survival as too_easy, else in_band
- RunGameTests:Invoke("difficulty-and-balance", "balance-wave-curve") passes all 8 checks