示例#1
0
 private static string[] GetTargets(Vector from, Map map)
 {
     Console.WriteLine(map.ToString());
     var waveRun = new WaveRun(map, from);
     Tuple<Vector, Stack<RobotMove>>[] targets = waveRun.EnumerateTargets((lmap, pos, stepNumber) => lmap.GetCell(pos) == MapCell.Lambda).ToArray();
     string[] formattedTargets = targets.Select(FormatTarget).ToArray();
     foreach (var target in formattedTargets)
         Console.WriteLine(target);
     return formattedTargets;
 }