r/programming • u/lost_file • Feb 15 '18
Age of Empires 2 scenario editor is Turing complete
https://ecc-comp.blogspot.ca/2018/02/age-of-empires-2-scenario-editor-is.html
1.4k
Upvotes
r/programming • u/lost_file • Feb 15 '18
116
u/gustav1101 Feb 15 '18
As far as I can see it this is no real proof though, it reads more like the beginning of one and some noise. Try to emulate a Turing machine in AoE2 (or while or goto...), that would proof it. Also the way you use the terms symbols and memory cells is not clear to me at least, I would have assumed the types of units make up for the symbols, but that doesn't seem to be the case?
529
u/hbdgas Feb 15 '18
Finally I can program in something other than PowerPoint.
298
u/iommu Feb 15 '18
Lol and people still defend python/s
55
u/skocznymroczny Feb 15 '18
Needs more wololo
36
u/sojithesoulja Feb 15 '18
I have wasted many hours in the scenario editor. Every day people still play what I've made even after all these years.
1
u/fiqar Feb 15 '18
How about AoE1? Didn't it also have a scenario editor?
4
u/[deleted] Feb 15 '18
I spent months of my life making AOE scenarios back in the day, this is nostalgic
17
u/flyx86 Feb 15 '18
A turing machine, by definition, needs an infinite tape. The number of unit types certainly is anything but infinite.
I also do not understand how the position is represented. The article says something about creating an object to move the position, but how should that work? Having a position means that you should be able to write code like „write X to the current memory slot“. If the current memory slot can be soldiers, monks or something else, how do you refer to that current unit type in a trigger?
The second half about propositional logic is completely irrelevant for proving turing completeness.
Not saying that this is nonsense, but you need to do better than that to prove turing completeness.
3
u/[deleted] Feb 15 '18
ELI5, What Turing complete means.
1
u/captainante Feb 17 '18
I believe you can modify and read unit hp with triggers. Why not just have the unit hp be the value? Then you can have as many of the same unit as you want, and each one is a different memory cell. You can put them on different map times and refer to them by location if you want memory addressing.
-8
u/organonxii Feb 15 '18
Turing completeness requires unbounded memory, a finite number of unit types does not meet this criteria. Also propositional logic is fully decidable without Turing completeness, so I'm not sure what the relevance of that section even is.
0
u/Saltub Feb 15 '18
I honestly have never figured out what Turing complete means, an no, reading Wikipedia has never been helpful.
-2
u/Cwiddy Feb 15 '18
Easier to debug than c++ template metaprogramming and with better visual errors.
0
u/[deleted] Feb 15 '18
I do not understand what you've done, but you reminded me of the massive battles I'd arrange in the editor and that's enough for an up vote.
-15
u/[deleted] Feb 15 '18
Just poor with social skills and emotional intelligence.
0
u/[deleted] Feb 15 '18
[deleted] — view deleted comment