A simple, command-line game of Mastermind.
If this is something that interests you, feel free to use any part of this however you wish!
This is a tiny project, and there are no dependencies, other than the Haskell compiler.
To compile, simply:
ghc Main.hs -o MASTERMIND
Or, for system-wide: cabal install
Or for one-time use: runghc Main.hs
I have only tried this on Linux (Mint), and I suspect the colors will not work properly on any other platform