This is the classic MasterMind game. My son Abe helped me with the design and programming. We *really* wish that Scratch had arrays, as the game would take about 1/3 as many blocks of code.