This is getting off topic, it was about AI, now about programming paradigms...
I agree.
I'm definitely not going to rewrite your program which
I know nothing about about in oop.
I knew absolutely nothing about Zydis when I wrote those programs and what I had to help myself was C code. At least I'm offering you Pascal code.
In order for you to have some idea of why I am so staunchly against OOP you need to compare the results obtained with both paradigms. Since you advocate for OOP then you should be the one to have the opportunity to produce the best that can be done with OOP.
Lainz has a good point about this stuff suspiciously looking (and possibly being) off topic but the point that is not off topic is that when you criticize something then you must provide some reasonably good supporting evidence and you definitely could improve that area of your argument.
I have a number of problems with A.I, among them:
1. It has no problem solving ability whatsoever.
2. It is unable to evaluate the correctness of the "solutions" it offers.
3. It seems to be little more than a plagiarism engine which, at least in some cases, could have some undesirable legal implications and it does not seem to ever credit the original authors (which, at least by some standards, is unethical.)
4. the financial interests peddling A.I rarely, if ever, disclose the above problems. On the contrary, they seem to purposely ignore/cover them up (they have that in common with some OOP proponents.)
However used very carefully it can be useful and that usefulness depends on the activity and its user's _ability_ to detect the totally worthless B.S it can easily generate (rather common occurrence when it's asked to solve programming problems.)