A simple framework for MasterMind games