//Using SadRogue.Primitives Alpha static void Main() { List <Point> Astroids = new List <Point>(); var input = File.ReadLines(@"./Inputs/Part1.txt"); int inputY = input.Count(); int inputX = input.First().Length; for (int y = 0; y < inputY; y++) { StringBuilder sb = new StringBuilder(); string s = input.ElementAt(y); for (int x = 0; x < inputX; x++) { char c = s[x]; sb.Append(c); if (c == '#') { Astroids.Add((x, y)); } } Console.WriteLine(sb.ToString()); } Console.WriteLine(); //Part1(Astroids); //Best roid in part one is 11,11 221 //Best roid in Big test is 11,13 210 //Big test 200 = 8,2 Part2(Astroids, (11, 11)); Console.ReadLine(); }
static void Main(string[] args) { var solve1 = new Part1().Solve(); Console.WriteLine(solve1); var solve2 = new Part2().Solve(); Console.WriteLine(solve2); }
static void Main(string[] args) { var input = new Input(FilePath); var list = input.Parse(); Part1 p1 = new Part1(list); var output = p1.Execute(); Console.WriteLine(output); Part2 p2 = new Part2(list); var part2 = p2.Execute(); Console.WriteLine(part2); }
public static void Main(string[] args) { //Part1.Run(); Part2.Run(); }