Recursive Text Adventure

Haskell
Backstory

University coursework. Again, lecturers filled in the overall program structure and what I had to do was make a few vital functions to make the program work.

Geeky Stuff

The way this game works is like an onion, you peel a layer off every time you perform an action. It might not feel that way because you feel like there’s some kind of sequentiality to the game, but in order to make it work recursively, that needs to be the case.

How you can run this

How to use the program

Explore locations by using information provided to see the story unfold

Thoughts

You may think that this is a purely academic endeavour, but it is not the case. Java officially adopted lambda functions from version 8 onwards. Understanding functional programming makes using lambdas in Java a complete delight, they allow to write cleaner code and reduce the clutter usually generated by loops.

Acknowledgements
  1. Project skeleton - University of Bath CS dpt.