Question: using java developing client server application. The server need to be able to connect to multiple clients at the same time. Once a client is
using java developing client server application. The server need to be able to connect to multiple clients at the same time. Once a client is connected to the server, the server will offer the client 3 choices to choose from as follows:
- Guess the number game ( the user will chooses any number and without telling the server about it, the server needs to guess the number, the server will select numbers and send it to the clients the user will reply with higher or lower only.
- Doubling the number game: once chosen the server starts sending the user a number and gives the user 5 seconds to send the double of the number. Once received if correct a great message will be sent and a new number, otherwise an encouragement message and a new number, if the user couldnt reply within 5 seconds the server will consider it as a failure.
- Tic tack toe game: textual representation or a graphical representation of the board will be displayed. Then the user select a square from the 9 possible ones the server will select a different square. The server should try to stop the user from wining.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
