Implementation of Conway's Game of Life using comonads and FRP
Find a file
2021-12-29 21:07:01 -05:00
GOL Fix various display issues 2021-12-28 18:17:19 -05:00
Graphics Add pausing functionality 2021-12-29 20:37:00 -05:00
.gitignore Update gitignore to ignore nix result symlinks 2021-12-28 00:46:03 -05:00
conways-game-of-life.cabal Add library specification to cabal file 2021-12-29 21:07:01 -05:00
flake.lock Add Nix flake support 2021-12-20 00:58:35 -05:00
flake.nix Add support for "nix run" 2021-12-28 22:55:42 -05:00
LICENSE Create LICENSE 2021-12-11 11:42:51 -05:00
Main.hs Add library specification to cabal file 2021-12-29 21:07:01 -05:00
README.md Create README.md 2021-12-29 20:58:10 -05:00
shell.nix Add Nix flake support 2021-12-20 00:58:35 -05:00

Conway's Game of Life

An implementation of Conway's Game of Life in Haskell using comonads and functional reactive programming.

This package consists of two parts:

  • A library that can be used to simulate Conway's Game of Life on an arbitrary space using arbitrary rules. It is based on a comonad transformer stack.

  • An executable that uses Yampa and Gloss to graphically display a 100x100 simulation of Conway's Game of Life. The simulation can be controlled by the keys:

    Space Play/Pause

    - Slow down the tick rate

    + (hold shift) Speed up the tick rate

This package is a work in progress and may not be fully functional.