Code Breaker Minigame

Ok, so I am trying make a mini game that is like the board game Mastermind, though both you and the computer have codes and you are racing each other.  I have several ideas of things that I could do, but I have no idea where to start, and I'm only at basic scripting.  Any help would be appreciated, thanks.

Original thread: https://forums.rpgmakerweb.com/threads/code-breaker-minigame.54752/