Skip to content

geoe9/haskell-coursework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 

Repository files navigation

Haskell Coursework

Second year Computer Languages and Representations CA1: Functional Programming with Haskell.

puzzle.hs

Gives all 6-digit solutions of a puzzle with the following rules:

  1. all digits are different;
  2. alternate digits are even and odd, or odd and even;
  3. alternate digits differ by more than two;
  4. the first and middle pairs of digits form numbers that are both multiples of the last.

life.hs

A 'Game of Life' simulation which models the evolution of 'cells' according to the following 3 rules:

  • Any live cell with two or three live neighbours survives. 3
  • Any dead cell with three live neighbours becomes alive.
  • All other live cells die, and all other dead cells stay dead.

About

Year 2 - Computer Languages and Representations CA1: Functional (Haskell) Programming

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published