Question: You are required to design and write (in Java) a simple network-based implementation of the ten guesses game. Game rules / outcomes: Server program selects
You are required to design and write (in Java) a simple network-based implementation of the ten guesses game. Game rules / outcomes: Server program selects a number between 1 and 1000. Client has ten (iterative) attempts at guessing the number. (i.e. user running the client programme will input guesses at the keyboard) Server responds with Correct you win!, or Too high guess again, or Too low guess again, or Youre out of guesses you lose! as appropriate. Client wins if they guess correctly. Server wins if the client runs out of guesses. Server should keep a tally of scores, and should ask the user (client) at the end of each game if they would like to play again or not. Required: The client program GuessClient that implements the client side functionality. The Server program GuessServer that facilitates the playing of the game and its outcomes. A brief design document that outlines the design / rationale for your programs.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
