Пример #1
0
 public void execute(ClientConnection connection, String args) {
   int count = 0;
   for (ServerGame g : serverState.getCurrentGames()) {
     if (g != null) {
       connection.writelnToClient(g.getGameString());
       count++;
     }
   }
   connection.writelnToClient("");
   connection.writeToClientPrompt(count + " games displayed.");
 }