コード例 #1
0
        public static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            IRandomGenerator randomGenerator = new RandomGenerator();
            var     dealer           = new Dealer(randomGenerator);
            var     checkHand        = new CheckHandType();
            var     handTypes        = new HandTypes(randomGenerator);
            IWriter messageBoxWriter = new MessageBoxWriter();
            var     pokerTable       = new PokerTable(dealer, checkHand, handTypes, messageBoxWriter);

            Application.Run(pokerTable);
        }
コード例 #2
0
ファイル: PokerMain.cs プロジェクト: Team-Bilberry/Poker
        public static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            IRandomGenerator randomGenerator = new RandomGenerator();
            var dealer = new Dealer(randomGenerator);
            var checkHand = new CheckHandType();
            var handTypes = new HandTypes(randomGenerator);
            IWriter messageBoxWriter = new MessageBoxWriter();
            var pokerTable = new PokerTable(dealer, checkHand, handTypes, messageBoxWriter);

            Application.Run(pokerTable);
        }