|
Note
|
Unlike most of our engine documentation, parts of this text is written in my personal (hi, I’m Michalis) voice, sharing my personal experience. I hope this helps you understand the reasoning behind some of the statements.
Also, I’m sorry it’s a long text. Ironically, being too verbose is also a complaint we often have about AI-generated stuff. I can only hope that my human writing is more entertaining / informative :)
|
From my conversations with fellow developers, I know we’ve all tried using AI, and we all have our share of success stories and failure stories (cautionary tales).
-
One of my personal early successes was using AI to help me add Sketchfab Integration to our editor. AI’s knowledge of the Sketchfab API was very helpful, and it was capable of using our TCastleDownload for the task, when instructed to use it.
-
One of my personal failures, quite recent actually (2025), was asking AI for a proof of Pythagorean theorem. AI incorrectly combined a few different ways to go about proving this theorem, and it made a nonsense step in the middle of the proof, temporarily changing the meaning of the symbols and claiming invalid things about the situation. To make matters worse, this incorrect answer from AI looked plausible (if you just scan it quickly without really comprehending each step, you will nod your head and say "yes, that sounds about right"), and it was stated with confidence. Since AI is trained to produce output that sounds plausible and confident.
The educational implications of such AI mistakes are worrying. Think about children who want to learn math and ask AI such a question, perhaps because they didn’t understand the proof their teacher showed during a school lesson, so they come home and ask AI for help. If I were 10 years old and used AI to help me understand the Pythagorean theorem proof, I would conclude "well, one step in this proof doesn’t look right; I’m probably too stupid to understand it". It’s only because I’m older (and more confident in my own math skills) that I can see the reality: "one step in this proof is incorrect; AI is wrong because it’s just a probabilistic machine guessing what to tell me to sound most plausible".
With this introduction, let’s jump into recommendations and rules about using AI to contribute to Castle Game Engine.
|
Warning
|
One last disclaimer: This page doesn’t discuss the aspects of AI beyond "using AI to write Pascal code in the context of our engine". We don’t discuss here the fact that AI was trained on copyrighted data (sometimes non-public) and can regurgitate it when asked, without caring about attribution or licensing. Or various clear abuses of AI, like generating spam (such as on our forum). Or the existential dread where does this progress lead, thinking years ahead. Or using AI to make good art (2D or 3D). The topic is broad. Let’s focus for now on how to use what you have, right now, to help you write good code.
|