コード例 #1
0
 private void RemoveWords(List <string> wlist)
 {
     for (int i = 0; i < wlist.Count; i++)
     {
         if (wlist[i].Length >= 4 && PublicInfo.ContainHighValueLetter(wlist[i]) < 1)
         {
             wlist.Remove(wlist[i--]);
             continue;
         }
         if (wlist[i].Length >= 6 && PublicInfo.ContainHighValueLetter(wlist[i]) < 2)
         {
             wlist.Remove(wlist[i--]);
             continue;
         }
         if (wlist[i].Length >= PublicInfo.GetColumns() / 2 - 1)
         {
             wlist.Remove(wlist[i--]);
         }
     }
 }