[NF] Implement interface Mastermind.