예제 #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
        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);
        }