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
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: