Пример #1
0
    public void SubmitWord(string a_Word)
    {
        if (m_Parser.IsValidWord(a_Word, ref m_AvailableLetters, m_Words))
        {
            m_ScoreRecord.Add(a_Word);
            m_ScoreRecord = m_ScoreRecord.OrderByDescending(r => r.Length).ToList();

            if (m_ScoreRecord.Count > 10)
            {
                m_ScoreRecord.RemoveRange(10, m_ScoreRecord.Count - 10);
            }
        }
    }