Last time we looked at how the board is represented in the little Fox & Geese game I wrote in Haskell. This time, I’ll cover the machinery that makes the game go: moving pieces, jumping, and validating moves. The code for this part is available in my GitHub repo under tag v0.1.2.
Entries Tagged ‘monads’:
Two easy introductions to monad transformers in Haskell.
The first is a PDF, Monad Transformers Step by Step, that builds up complex functionality step by step using monad transformers. It shows in detail how to combine transformers, and why you would want to, two things which had thoroughly confused me.