Пример #1
0
    public void EndTurn(int buttonPressed)
    {
        bool sectionWon     = CheckForWin(buttonPressed);
        bool sectionIsADraw = ++moveCount >= 9 && !sectionWon;

        if (sectionWon || sectionIsADraw)
        {
            SectionOver(sectionIsADraw);
        }
        else
        {
            globalController.EndTurn();
        }
    }