Exemplo n.º 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);
        }
Exemplo n.º 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);
        }