Esempio n. 1
0
        private void CellButton_Click(object i_Sender, EventArgs i_EventArgs)
        {
            TicTacToeCellButton ticTacToeCellButton = i_Sender as TicTacToeCellButton;

            if (CurrentPlayer.PlayerName == PlayerOneInfo.PlayerName)
            {
                DrawLabelsBoldAndRegularRespectively(labelPlayer2N, labelPlayer1N);
            }
            else
            {
                DrawLabelsBoldAndRegularRespectively(labelPlayer1N, labelPlayer2N);
            }

            if (ticTacToeCellButton != null)
            {
                GameLogicManager.PlayerMove(ticTacToeCellButton.CellLocation);
            }
        }