r/programming • • Apr 12 '19

Windows 10 source code: over 0.5 TB source code, over 4 million files, more than a half million folders

https://www.quora.com/Which-programming-language-is-used-for-making-Windows-10/answer/Axel-Rietschin?share=1
2.0k Upvotes

377 comments sorted by

View all comments

Show parent comments

34

u/LaughterHouseV Apr 12 '19

That's what Age of Empires 2 does as well.

27

u/lvl12TimeWizard Apr 12 '19

I don't know about Age of Empires 2 but I know in Warcraft 2 if you turned on the instant build cheat and the gold/supplies cheat the computer would actually outperform you and win...or I was just 12 and sucked even with cheats.

15

u/noideaman Apr 13 '19

You could win, but you had to build towers and units

-17

u/NamerNotLiteral Apr 12 '19

Which is a 20 year old game.

31

u/Jump-Zero Apr 12 '19

The recently remastered version completely re-implemented the AI, and it's still a chain for If statements. They went as far as writing a lisp dialect to make writing if-statments easier.

EDIT: Learn more here https://www.youtube.com/watch?v=-S1CkfzEHSU

14

u/pataoAoC Apr 12 '19

The modern aoe2 AIs are pretty badass though. Anyone turning their nose up at classic if-thens needs to go a few rounds with the Barbarian.

6

u/bitwize Apr 13 '19

I'm writing a game myself, and geez there are a lot of ifs in the logic. My remarks were about the fact that the developer of Yandere Simulater uses ifs everywhere, to deal with a combinatorically explosive number of conditions, where using something like a LUT, state machine, polymorphism, the ECS, or even nested if statements. For example, adding a conditional to check if Yandere-chan is holding each individual weapon type and taking the same action if she is, rather than doing one check to determine if she is holding an object and it's an object of type "weapon". That sort of thing.