Ejemplo n.º 1
0
        private void CreatePlayersInGame()
        {
            if (game == null)
            {
                throw new Exception("Creating players requires a game!!! ");
            }

            playerCreator = PlayerCreatorFactory.Create(game);

            game.players = playerCreator.CreateNew(1);
        }
Ejemplo n.º 2
0
        private void GamePlayersInitialize()
        {
            var playerCreator = PlayerCreatorFactory.Create(game);

            game.players = playerCreator.CreateNew(2);
        }