Page 1 of 1

CS13 - Guessing game Write a two player guessing game. Players must guess a secret number (an integer) which is given as

Posted: Sat May 14, 2022 4:27 pm
by answerhappygod
Cs13 Guessing Game Write A Two Player Guessing Game Players Must Guess A Secret Number An Integer Which Is Given As 1
Cs13 Guessing Game Write A Two Player Guessing Game Players Must Guess A Secret Number An Integer Which Is Given As 1 (45.04 KiB) Viewed 42 times
CS13 - Guessing game Write a two player guessing game. Players must guess a secret number (an integer) which is given as a command line argument. The program will begin by asking players for their name. The program will alternate, asking each player in the following style: <player>, what is your guess? When the player inputs a guess, 3 possible outcomes are possible. • The secret number is higher than the player's guess. The program will then output higher and go to the next player. • The secret number is lower than the player's guess. The program will then output Lower and go to the next player. • The secret number is equal to the player's guess. The program will print <player> wins! and the program will end. Assume all inputs are valid. Example: