Reflex Training
Mechanic Sector
(Engage card to reveal Pilot's Intelligence.)
The Pilot's Audit
"The AI Trap: "The Desktop Hardcode""
// AI-Generated Code: Permission Denied
File.WriteAllText("C:/Saves/save.json", data);
// Audit Fail: This crashes on Android, iOS, and Mac.
Protocol Analysis
This is "Platform Ignorance." Hardcoded paths only work on your specific computer.
Audit Complete
The Pilot's Audit
"The AI Trap: "The Infinite Laser""
// AI-Generated Code: Unfiltered Scan
if (Physics.Raycast(transform.position, Vector3.down, out hit)) {
isGrounded = true;
}
// Audit Fail: This hits EVERYTHING. Including the player's own foot.
Protocol Analysis
This is "Self-Detection." The raycast hits the player collider immediately and thinks the player is "grounded" in mid-air.
Audit Complete
The Pilot's Audit
"The AI Trap: "The Typo Hazard""
// AI-Generated Code: Fragile Strings
// Script A:
PlayerPrefs.SetInt("PlayerGold", gold);
// Script B:
int g = PlayerPrefs.GetInt("playerGold"); // Lowercase "p"
Protocol Analysis
This is "Case Sensitivity Failure." The Load function returns 0 because "playerGold" does not exist.
Audit Complete
The Pilot's Audit
"The AI Trap: "The String Search""
// AI-Generated Code: Slow and Buggy
if (Physics.Raycast(transform.position, Vector3.down, out hit)) {
// Audit Fail: We hit SOMETHING, but was it the ground?
// Or was it a cloud? Or the drone's own foot?
if (hit.collider.tag == "Ground") {
Land();
}
}
Protocol Analysis
This is "Blind Casting." The ray might hit a particle effect 1 meter away and stop, never seeing the ground 10 meters down. The tag check happens too late.
Audit Complete
The Pilot's Audit
"The AI Trap: "The Static Trap""
// AI-Generated Code: Misunderstanding Scope
public static int highScore;
// Audit Fail: "static" variables persist between SCENES,
// but they are still wiped when the APPLICATION closes.
Protocol Analysis
This is "The RAM Myth." The AI assumes you just mean "Changing Levels," not "Quitting the Game."
Audit Complete
The Pilot's Audit
"The AI Trap: "The Prefs Spam""
// AI-Generated Code: Key Explosion
PlayerPrefs.SetString("Item1", "Sword");
PlayerPrefs.SetString("Item2", "Shield");
PlayerPrefs.SetString("Item3", "Potion");
Protocol Analysis
This is "Scalability Failure." Managing 100 keys for an inventory is impossible to maintain.
Audit Complete
Scanning database for new traps