Implementation of Conway's Game of Life using comonads and FRP
Find a file
2022-04-08 00:54:06 -04:00
GOL Fix various display issues 2021-12-28 18:17:19 -05:00
Graphics Fix window size bug 2021-12-29 22:54:49 -05:00
.envrc Start using direnv 2022-01-11 23:28:57 -05:00
.gitignore Update direnv 2022-01-11 23:54:53 -05:00
conways-game-of-life.cabal Add library specification to cabal file 2021-12-29 21:07:01 -05:00
flake.lock Remove unnecessary flake-compat input 2022-03-09 13:49:35 -05:00
flake.nix Switch flake.nix architecture 2022-03-11 23:01:32 -05:00
LICENSE Create LICENSE 2021-12-11 11:42:51 -05:00
Main.hs Add slightly more informative comment 2022-04-08 00:54:06 -04:00
README.md Create README.md 2021-12-29 20:58:10 -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.