Beispiel #1
0
 public int anchorPiece(Point pos, List <TetrisPiece> pieces)
 {
     for (int i = 0; i < pieces.Count; i++)
     {
         TetrisPiece other = pieces[i];
         if (other.Fits(pos) && this == other)
         {
             return(i);
         }
     }
     return(-1);
 }