public bool PlaceAt(Platelet platelet, Point position) { var x = _positions.OrderBy(p => { #warning name to long return(p.CalculateMinimumInnerCornerDistance(position)); }); var best = x.FirstOrDefault(); if (best != null) { return(platelet.Place(best)); } return(false); }
public bool PlaceAt(Platelet platelet, int fieldIndex) { return(platelet.Place(_positions[fieldIndex])); }