示例#1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Let's play Deal Or No Deal...");

            Game game = new Game();
            IBriefcaseService   briefcaseService   = new BriefcaseService(game);
            IPlayerService      playerService      = new PlayerService(briefcaseService);
            IBankerOfferService bankerOfferService = new BankerOfferService();
            IGameRoundService   gameRoundService   = new GameRoundService(briefcaseService, bankerOfferService);
            GameInstance        dealOrNoDeal       = new GameInstance(briefcaseService, playerService, gameRoundService);

            dealOrNoDeal.Run(game);

            Console.ReadKey();
        }
示例#2
0
 public DemoViewController(
     GameRoundService gameRoundService)
 {
     _gameRoundService = gameRoundService;
 }
示例#3
0
 public RoundsController(GameRoundService gameRoundService)
 {
     _gameRoundService = gameRoundService;
 }