Second year Computer Languages and Representations CA1: Functional Programming with Haskell.
Gives all 6-digit solutions of a puzzle with the following rules:
- all digits are different;
- alternate digits are even and odd, or odd and even;
- alternate digits differ by more than two;
- the first and middle pairs of digits form numbers that are both multiples of the last.
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.