Ejemplo n.º 1
0
        private bool CheckSomeoneWin()
        {
            var CheckWinner = new Winner(_boardSize, _currentPlayer, _fieldsToWin);

            if (CheckWinner.CheckWinnerHorizontal() ||
                CheckWinner.CheckWinnerVertical() ||
                CheckWinner.CheckWinnerSlanAtFront() ||
                CheckWinner.CheckWinnerSlantAtBack())
            {
                return(true);
            }

            return(false);
        }