Tier 4
Series 303
303G: The Procedural Exam
Capstone Exam
"The simulation generation is unstable. The terrain is jagged, the world changes every time the engine restarts, and the generation loop is freezing the controls. Identify the three critical failures to stabilize the procedural engine."
Target Asset for Audit
FRAGILE_CODE_DETECTED
using UnityEngine;
public class WorldGen : MonoBehaviour {
void Start() {
// Audit Requirement: Lesson 303C (Seed)
// Error 1: No Seed Initialization
GenerateWorld();
}
void GenerateWorld() {
// Audit Requirement: Lesson 303E (Jobs)
// Error 2: Heavy Main Thread Loop
for(int i=0; i<1000000; i++) {
// Audit Requirement: Lesson 303A (Noise)
// Error 3: Pure Randomness
float height = Random.Range(0f, 100f);
BuildVertex(i, height);
}
}
}