Ejemplo n.º 1
0
 public static ChessGame CreateNewGame(ChessServer chessServer)
 {
     instance = new ChessGame(chessServer)
     {
         game = GameLogic.CreateNewGame()
     };
     return(instance);
 }
Ejemplo n.º 2
0
        public IChessGame GetChessGame(IConnection connection)
        {
            ChessServer chessServer = new ChessServer(connection);
            IChessGame  game        = ChessGame.CreateNewGame(chessServer);

            chessServer.Game = game;
            chessServer.Start();
            return(game);
        }
Ejemplo n.º 3
0
        private ChessGame(ChessServer chessServer)
        {
            this.chessServer = chessServer;

            DisconnectedPlayersCount = 0;
        }