diff --git a/src/main/java/it/polimi/ingsw/gc14/ClientLauncherTUI.java b/src/main/java/it/polimi/ingsw/gc14/ClientLauncherTUI.java index bb89ac2..8da0d9e 100644 --- a/src/main/java/it/polimi/ingsw/gc14/ClientLauncherTUI.java +++ b/src/main/java/it/polimi/ingsw/gc14/ClientLauncherTUI.java @@ -28,21 +28,20 @@ public class ClientLauncherTUI { if (networkType == 0) { RMIClient client = new RMIClient("localhost", 1099); if (client.connect(username, proposedNumPlayers, controller)) { - System.out.println("CLIENT CONNESSO DAJE"); + System.out.println("Succesfully connected to RMI server\n\n"); } else { - System.out.println("NON CONNESSO D:"); + System.out.println("RMI connection refused\n\n"); } while(true) { System.out.flush(); if (controller.localModel!=null) { - System.out.println("MODEL SETTATO"); + break; } Thread.sleep(500); } - - + System.out.println("Model set\n\n"); diff --git a/src/main/java/it/polimi/ingsw/gc14/ServerLauncher.java b/src/main/java/it/polimi/ingsw/gc14/ServerLauncher.java index d1650d9..9c8a10e 100644 --- a/src/main/java/it/polimi/ingsw/gc14/ServerLauncher.java +++ b/src/main/java/it/polimi/ingsw/gc14/ServerLauncher.java @@ -134,7 +134,7 @@ public class ServerLauncher { */ public void run() throws InterruptedException, RemoteException { // Game creation - System.out.println("NOTIFICO MODEL"); + System.out.println("\n\nNotifying model"); serverRMI.notifyAll(gameController.getModel()); serverTCP.notifyAll(gameController.getModel());