Some code which solves a game of mastermind for you.