Ejemplo n.º 1
0
        public GraphicInterface()
        {
            logic = new GameLogic();
            initializeGridBoard();
            setEllipses();
            setHeaderPlayers();
            setGridHeader();

            btnNewGame = new Button()
            {
                Content = "New game"
            };
            btnNewGame.Tap += startNewGame;

            tbHeaderTitle = new TextBlock()
            {
                Text = "TicTacToe by @FerPeralesM",
                FontSize = 34,
                TextAlignment = TextAlignment.Center
            };

            this.Children.Add(tbHeaderTitle);
            this.Children.Add(tbHeaderCurrentPlayer);
            this.Children.Add(gridHeaderTokens);
            this.Children.Add(gridBoard);
            this.Children.Add(btnNewGame);
        }