static List <Point[]> GetAllVerticalBangLines(Match3Map actualMap)
        {
            var result = GetAllHorizontalBangLines(actualMap.TransposeMap());

            return(result
                   .Select(bangLine => Utils.GetPointsForTransposedMatrix(bangLine))
                   .ToList());
        }
        static List <Point> GetCellColumnComboItems(Match3Map actualMap, List <Point[]> bangLines, int targetBangLineLength)
        {
            var transposedMap       = actualMap.TransposeMap();
            var transposedBangLines = bangLines
                                      .Select(line => Utils.GetPointsForTransposedMatrix(line))
                                      .ToList();

            var result = GetCellLineComboItems(transposedMap, transposedBangLines, targetBangLineLength);

            return(Utils.GetPointsForTransposedMatrix(result));
        }
예제 #3
0
        static List <Point[]> GetVerticalHints(Match3Map actualMap)
        {
            var hints  = GetHorizontalHints(actualMap.TransposeMap());
            var result = new List <Point[]>();

            for (int i = 0; i < hints.Count; i++)
            {
                result.Add(Utils.GetPointsForTransposedMatrix(hints[i]));
            }

            return(result);
        }
예제 #4
0
 static bool IsAnyVerticalStepsEffective(Match3Map actualMap)
 {
     return(IsAnyHorizontalStepsEffective(actualMap.TransposeMap()));
 }