Re:Admitting that Functional Programming Can Be Awkward
by copenja on Tuesday June 16, 2009 @12:41PM
(#660471)
This same guy also wrote an article describing the exact same functional style game loop that you are describing:
Re:Admitting that Functional Programming Can Be Awkward
by stcredzero on Tuesday June 16, 2009 @02:27PM
(#660622)
I stand corrected. He knows his stuff already. I'll reread his OP.
The OP is accustomed to thinking only in terms of mutating state. He can't get away from it. He wouldn't have had all of these problems if he'd just done ye olde AI class with turn-based board game project in Lisp. (With a prof who set a coding standard for pure functional Lisp.)