Very nice! Once I realised that i had to press r g b etc (and that i couldn't quit) I was playing fine. It's years since I played mastermind. It's quite hard at times isnt' it.
The only suggestion i have is to give feedback on typing...
You mean you could not find out how to handle the input or
was the input not correctly displayed? Because I only tested
(read-key) on linux and i hope the behaviour is
the same on MacOs..
Yes, I'm afraid I wasn't smart enough to guess that I had to type a key for the colour. :-( I pressed lots of keys, but none of them appeared on the screen when I typed them...
i see you've now added a prompt, which will help the less clever (like me) to start playing!