GuessMyNumberGame This is a simple text game, where the computer picks a secret number between 1 and 10. You have to guess it, within five tries.
It’s simple enough to code up quickly.
Better still for this example, it reads input from the keyboard, outputs to the console, and has a little bit of logic tying the two together.
Perfect,Make it work then refactor.