guessing game

Create a program that will simulate the child’s number guessing game with two players who will play against the computer. The program should have the following requirements:

1. When the program is invoked the computer will pseudorandomly choose which player will go first.
2. Play begins when the computer interface asks “Player Number”. A player number (either 1 or 2) is entered from the keyboard. If a player enters their number at the keyboard and it is not their turn the computer will report back “You have to wait your turn” and return to the query “Player Number”. If it is a player’s turn the computer will query “Enter Your Guess”. The player may either enter a guess or indicate a desire to pass the play to the other player by entering the word PASS at the prompt. If the player enters a guess the computer will report back that the guess is too high, too low or correct and return to the query “Player Number” and pass play to the other player.
3. No player may pass two turns in a row, and cannot exceed more than three passes for the entire game. If the player chooses to pass the computer should report “You have passed X number of times, you have Y more times left” before returning the query “Player Number”.
4. The play progresses until one user provides a correct guess.
5. The program must be written in C and must be able to be compiled and run on UISACAD (no exceptions) using the gcccompiler (do not use g++)

We are always aiming to provide top quality academic writing services that will surely enable you achieve your desired academic grades. Our support is round the clock!

Type of paper Academic level Subject area
Number of pages Paper urgency Cost per page: