Module 13 · In Studio · challenge 3 of 3 in this lesson
The real yard data passes with no errors
A test in Studio grades it and prints a pass code.
Open
Level 3, Professional
Challenge
Write validate, hitsToKill and itemIdType in challenges/work/content_rules.luau. The written solution is challenges/solutions/data-driven-content.md. In Play, run game.ServerScriptService.RunGameTests:Invoke("data-driven-content", "data-rules") and paste the pass code here.
- Start from
- The game at milestone m14 (download)
- Grade it
- In Studio, press Play, then run
game.ServerScriptService.RunGameTests:Invoke("data-driven-content", "data-rules")in the server command bar. Copy the pass code from Output.
Done means
- The real yard data passes with no errors
- Each of fifteen broken rows gives exactly one error naming the row's id and the field
- Several broken fields give one error each
- hitsToKill rounds up, and an enemy that takes exactly six hits is allowed
- itemIdType returns the export type line with quoted, sorted ids
- challenges/data-driven-content.luau prints TEST PASS for every check