Home > Back-end >  Guess the number of games
Guess the number of games

Time:12-16

I wrote make computer guess guess Numbers game, let the user guess guess the number of games, how should I put them together, and set a choice, I can start to choose is to let the computer or user guess?

CodePudding user response:

Write a menu option, written two functions, the if - else or a switch statement is used to implement

CodePudding user response:

Loop every time a choice function is advanced, and then the user input 1 or 2 or string of what you write this function, then according to the user input the if judgment call computer functions or user guess guess

CodePudding user response:

Menu to select how to write
  • Related