Reflex Training
Mechanic Sector
(Engage card to reveal Pilot's Intelligence.)
The Pilot's Audit
"The AI Trap: "The Impossible Purchase""
// Vague Prompt Result: Fails the Sanity Check
void BuyUpgrade() {
coinCount -= 50;
Debug.Log("Upgrade Purchased!");
}
Protocol Analysis
Without a check, a player with 10 coins ends up with -40. You've allowed the calculator to give an "impossible" answer.
Audit Complete
The Pilot's Audit
"The AI Trap: "The Mystery Variable""
// AI-Generated Code: Context-Free
public float sensitivity = 0.5f;
void Update() {
// Audit Fail: Is 0.5 low or high?
// Does increasing it make the drone smarter or dumber?
if (dist < sensitivity) { Detect(); }
}
Protocol Analysis
This is "Operational Blindness." In a month, you won't remember if sensitivity should be 0.1 or 100. A professional pilot ensures the dashboard includes a "Label Tape" for every dial.
Audit Complete
The Pilot's Audit
"The AI Trap: "The Hard Dependency""
// AI-Generated Code: Rigid Wiring
public class Player : MonoBehaviour {
// Audit Fail: Hard dependency on a specific manager
public UIManager uiManager;
void TakeDamage(int amt) {
hp -= amt;
uiManager.UpdateHealth(hp);
}
}
Protocol Analysis
This is "Rigid Wiring." The Player script now depends entirely on the UI Manager. You can't test the Player in a grey-box level without dragging the UI Manager along with it.
Audit Complete
The Pilot's Audit
"The Audit: The Frozen Engine"
void DepleteMana() {
// FRAGILE CODE
// Mana is never subtracted. Unity will freeze.
while (mana > 0) {
Debug.Log("Draining...");
}
}
Protocol Analysis
This is a "Hang." The condition `mana > 0` remains true forever because the AI forgot to subtract mana inside the braces.
Audit Complete
The Pilot's Audit
"The Audit: Spot the "Arrow Code" Error"
// AI-Generated Code (Nested Mess)
public string GetPower(FlightPhase phase) {
if (phase == FlightPhase.Idle) {
return "Low";
} else {
if (phase == FlightPhase.Takeoff) {
return "Maximum";
}
}
return "Unknown";
}
Protocol Analysis
This is "Arrow Code." While it works, it is mathematically "heavy" to read. As you add more phases (Taxi, Flight, Landing), the nesting becomes a maze where bugs hide.
Audit Complete
The Pilot's Audit
"The AI Trap: "The Garbage Generator""
// AI-Generated Code: Clean but potentially "Trashy"
void Update() {
// Audit Fail: This creates an Enumerator every single frame.
// Across 500 items, this builds up "Memory Garbage."
foreach (Projectile p in activeProjectiles) {
p.AdvancePosition();
}
}
Protocol Analysis
This is "Memory Pollution." Every time the Garbage Collector runs to clean up those Enumerators, the game might stutter for a few milliseconds. A professional pilot demands "Stutter-Free" flight by using index-based iteration.
Audit Complete
Scanning database for new traps