Mastermind

CS256: Functional Programming
Haskell

Date: October 2017

A Haskell console program that simulates a player vs computer game of the board-game Mastermind. The computer was made to solve a game in 5 moves or less utilising Knuth's mastermind algorithm.

Mastermind

Features

  • Ability to play a game of mastermind against a computer.
  • Computer solves game in 5 moves or less guaranteed.
  • Ability to choose number of pegs.

Screenshots

Mastermind
Mastermind