private bool HaveMatches()
        {
            for (int i = 0; i < _board.Width; i++)
            {
                for (int j = 0; j < _board.Height; j++)
                {
                    if (Helper.CellIsEmpty(_board.Cells[i, j]) == false)
                    {
                        if (_checkManager.HaveMatch(_board.Cells[i, j]))
                        {
                            return(true);
                        }
                    }
                }
            }

            return(false);
        }
예제 #2
0
        public static bool HaveMatches(ICheckManager checkManager)
        {
            for (int i = 0; i < checkManager.Board.Width; i++)
            {
                for (int j = 0; j < checkManager.Board.Height; j++)
                {
                    if (CellIsEmpty(checkManager.Board.Cells[i, j]) == false)
                    {
                        if (checkManager.HaveMatch(checkManager.Board.Cells[i, j]))
                        {
                            return(true);
                        }
                    }
                }
            }

            return(false);
        }