I’ve recently felt weird about what I’ve learned about the Enums, like what Coach Ben says.
When Ben asks us (where it’s me) to solve how to make password for each difficulty level, I had difficulty in solving it without knowing what enum is for, as I give up in that part…later then when I continue to play the video, then I realized what enum is for…it makes your code easier, as it motivates me to create more menu other than password.
Ben taught us how to create this enum:
enumScreen { MainMenu, Password, Win };
When I get into enum, I’m interest on trying to create a new enumScreen… so if you successfully crack a password, you still must crack a SecretCode (as a bonus)
enumScreen { MainMenu, Password, Win, SecretCode };
But I fail on this attempt… Maybe there’s other who like to help this out as a Challenge? Thankyou and stay Curious Programmers!!
and here’s my code:
Hope someone can help my Self Challenge, Thankyou and Stay Healthy