Ejemplo n.º 1
0
 bool MoveToAdjacent()
 {
     // search for vacant spots
     foreach (var g in board.GraphicEntities())
     {
         var target = board.FindAdjacentEmptyRect(g.rect);
         if (target != null)
         {
             //g.MoveAndResize(emptyRect);
             return(true);
         }
     }
     return(false);
 }