Beispiel #1
0
    /// <summary>
    /// Checks if there are any words formed from drawing a vertical or horizontal line
    /// through the adjacent letters
    /// </summary>
    /// <param name="connectedLetters"></param>
    private bool IsConnectedLetterValid(LetterGameLetter[] connectedLetters)
    {
        bool isValidConnection = false;

        if (connectedLetters != null)
        {
            string word = GetWordStringOfLetters(connectedLetters);
            isValidConnection = wordChecker.isWordValid(word);
        }

        return(isValidConnection);
    }