public IEnumerable<Tuple<int, int>> UpperIsTarget(IFieldsGraph fieldsGraph)
        {
            var coord = fieldsGraph.GetWhiteFieldCoords();

            return _allUpper.SelectMany(MultiplyByRadius)
                .Select(r=> coord.Add(r));
        }
Exemplo n.º 2
0
        public IEnumerable <Tuple <int, int> > BottomIsTarget(IFieldsGraph fieldsGraph)
        {
            var coord = fieldsGraph.GetWhiteFieldCoords();

            return(_allBottom.SelectMany(MultiplyByRadius)
                   .Select(r => coord.Add(r)));
        }