fix: modify small details

This commit is contained in:
2025-05-13 14:54:02 +03:30
parent b3237169d6
commit 65fb68c233
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -33,7 +33,7 @@ public class Client {
try {
//TODO: initialize out
this.out = new DataOutputStream(clientSocket.getOutputStream());
//TODO: create a BattleShipClientNetworkHandler
//TODO: create a ClientNetworkReceiver
//TODO: start it in another thread
System.out.println("Enter Username: ");
@@ -290,7 +290,7 @@ public class Client {
try {
//initialize clientSocket
//initialize BattleShipClient
//initialize Client
} finally {
try {
if (clientSocket != null) {
@@ -31,7 +31,7 @@ public class ClientNetworkReceiver implements Runnable{
int row = 0; //TODO: extract row
int col = 0; //TODO: extract col
String message = client.getHit(row, col);
//TODO: inform server
}
else if(false) //TODO: handle hit result from opponent
{