Basic Mastermind game in C++