Question: I am using java to play a tic tac toe game through client and server I am recieving this error when trying to connect the

I am using java to play a tic tac toe game through client and server

I am recieving this error when trying to connect the client and the server to play tic tac toe

Also the server is not recognizing I am trying to play new game.

I am using java to play a tic tac toe game through

client and server I am recieving this error when trying to connect

Start Page x a Clien ava x le Server java x tioGarne.java x Source History private static final int portnumber 2000; no suitable constructor found for Socket(Socket,int) 30 constructor Socket Socket (String,int) is not applicable //makes the player attriubutes (argument mismatch; Socket cannot be converted to String) 32 public Client. (Socket client Socket, string xo, ti constructor Socket Socket (InetAddress int s not applicable 33 34 (argument mismatch. Socket cannot be converted to InetAddress) 35 this client Socket client Socket. this. XO XO 26 (Alt-Enter shows hints) this game game 37 Socket Socket new Socket (c lient Socket rt number new BufferedReader (new InputstreamReader socket.getinputstream 29 input output new Printwriter socket getoutputstream. true 40 output println you are XO 41 42 43 runnable thread class 44 45 46 @Override public void run 48 String user Input try 50 game Going while (user Input input readLine null 51 if game. your Turn this 52 request (userInput) 53 54 55 56 57 catch (IOException e) 50 printStackTrace 60 finally 62 try client Socket.close 64 catch (IOException el cse310 project. aient Clien

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!