Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

create in java CSC 2 0 0 Final Project Create a 2 - person client / server game. 1 . The game must be played

create in java CSC 200 Final Project
Create a 2-person client/server game.
1. The game must be played over the net. A player must play against another player, who is sitting on a different computer on the same network, similar to the Tic Tac Toe example we played in class. (Note: This program is a player versus player program, not a player versus computer program.)
2. Both players must connect to a server program. The server program must wait for 2 players to connect and then start a thread for the 2 players to play. The server must then wait for 2 more players and then start another thread for those 2 players. The server continues waiting for 2 players and starting threads until the server program stops. (This is similar to the Tic Tac Toe program we saw in class.)
3. The client program must display instructors to players.
4. The server program must determine when a winner occurs and notify both players who the winner is.
5. Use the Socket class in the client program.
6. Use the ServerSocket class in the server program.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 10g SQL

Authors: Joan Casteel, Lannes Morris Murphy

1st Edition

141883629X, 9781418836290

More Books