Пример #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            HeartsWindow   heartsWindow = new HeartsWindow();
            GameController controller   = new GameController(heartsWindow);

            Application.Run(heartsWindow);
        }
Пример #2
0
        public GameController(HeartsWindow window)
        {
            this.heartsForm = window;
            this.createEventHandlers();
            game = new Game(
                new Player("You", "South"),
                new Bot("Matilda", "West"),
                new Bot("Wendy", "North"),
                new Bot("Morton", "East")
                );

            this.game.startRound();
            this.showCards();
            this.updateScoreLabels();
            this.makeBotMove();
        }