Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create a 2 - person client / server game. 1 . The game must be played across the network. One player must play against another
Create a person client server game.
The game must be played across the network. One player must play against another player, who is sitting at a different computer on the same network, similar to the Tic Tac Toe example that we played in class. Note: This is program is a player againstplayer type program, not a playeragainstcomputer program.
Both players must connect to a server program. The server program must wait for players to connect and then start a thread for the players to play the game on The server must then wait for more players and then start another thread for those players. The server continues waiting for players and starting threads until the server program is stopped. This is similar to the Tic Tac Toe program that we saw in class.
The client program must display instructors to the players.
The server program must determine when a winner occurs and notify both players who the winner is
Use the Socket class in the client program.
Use the ServerSocket class in the server program
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started