Ejemplo n.º 1
0
        public void DeleteLastLetter()
        {
            if (!CanDelete())
            {
                return;
            }

            if (Letters.Count != 0)
            {
                Letters.RemoveAt(Letters.Count - 1);
            }

            if (LetterSequence.Length != 0)
            {
                LetterSequence = LetterSequence.Substring(0, LetterSequence.Length - 1);
            }

            RecalculatePoints();
        }
 public void Move()
 {
     foreach (LetterCircle lc in Letters)
     {
         lc.Move();
     }
     for (int i = Letters.Count - 1; i >= 0; --i)
     {
         LetterCircle l = Letters[i];
         if (l.ShouldDie())
         {
             Misses++;
             Letters.RemoveAt(i);
         }
         else
         if (l.IsHit)
         {
             Letters.RemoveAt(i);
         }
     }
 }