You can read about how this game was done here:
Mastermind game in React and ECMAScript 6.

© Zofia Korcz