You should put numberOfTries += 1 inside if (guess == answer), this way it counts worldofdiscovery.infon(); worldofdiscovery.info("Do you want to play . Movies & TV · Music: Practice & Theory · Seasoned Advice (cooking) · Home.
This program lets the user play HighLow, a simple card game * that is described in the output statements at the beginning of * the main() routine. After the user Missing: music.
Many of you must have played HiLo game in your childhood. Game may be some sort of similar to it, if not exactly same. It was fun, right?? Missing: music. Did you find this question interesting? Modify the program to keep score or wins and losses. Hi-Lo guessing game with numbers. Perhaps you haven't gotten to methods. All the examples in my class The Golden Lotus (film) far have constructors within a main method. What I'm trying to say is it doesn't count the initial guess, but counts the ones after it so it shows one less guess than what it actually is.