I got my Haskell text game to compile!!
Jan. 13th, 2015 03:00 pmYay, my exploration game works now! I call it a "text exploration game" because it's inspired by Infocom games like Zork or Hitchhiker's Guide, but so far you can only explore a map but not interact with it so it's not really much of an adventure. It's still exciting to finally get it to work, because it was really difficult to find resources for making games in Haskell. Games are very "stateful" -- you have to keep track as things in your game change. Haskell has immutable state, though. So nothing in a Haskell program can change! How do you reconcile these things? Answer: I don't really know. But I do know a way to fake it!
I will definitely write up a big tutorial about my game once I've worked out the kinks. :D
I really need a better name than "exploration-game" though...
I will definitely write up a big tutorial about my game once I've worked out the kinks. :D
I really need a better name than "exploration-game" though...