Exemplo n.º 1
0
 public string StartGame(string name, int rows, int cols, TcpClient client)
 {
     if (games.ContainsKey(name))
     {
         return("there is such game");
     }
     else
     {
         Game g = new Game(name, rows, cols);
         g.AddClient(client);
         this.games.Add(name, g);
         return("wait for the second player");
     }
 }