Exemple #1
0
        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);
        }
Exemple #2
0
 public bool PlaceAt(Platelet platelet, int fieldIndex)
 {
     return(platelet.Place(_positions[fieldIndex]));
 }