All projects

Conway's Game of Life in Haskell and Prolog

My dual take on Conway's Game of Life, exploring Haskell and Prolog side-by-side to uncover the nuances between functional and logic programming.

2 likes53 views

In preparation for my Declarative Programming exam in the second half of 2024, I implemented Conway's Game of Life into both Haskell and Prolog. Both versions run fully in the terminal without any extra libraries. I found Haskell to be far more intuitive and easy to work with than Prolog, but I enjoyed the challenge of working with both languages and learning more about functional and logic programming, and it was especially fun to see the differences in implementation between the two languages.

You can find the Haskell version here and the Prolog version here.

Back to all projects