Hacker News new | ask | show | jobs
by yoklov 4347 days ago
The author open sourced his last game, Liberal Crime Squad, and its... The work of a madman. IIRC it was one ~40kloc C++ file full of globals and switch statements 6+ levels deep.

I'm sure someone's cleaned it up some now, but it made me wonder if that (unpredictable spaghetti code) is what's required for truly dynamic behavior, the kind that you see in DF and (to a lesser extent) LCS.

1 comments

Interesting. Perhaps, it was the output of a tool that compiled higher-level code down to C.
Or what you get when you leave a developer to his own devices for a decade.
This. There's a reason Toady won't open source Dwarf Fortress, and I think it is mainly because he is embarrassed. Toady has a masters in math, not CS.