Exemple #1
0
        private int SolvePuzzle(string input)
        {
            var map = new MapPuzzle2(1000, 1000);

            foreach (var word in GetWords(input))
            {
                foreach (var light in GetLightsForRange(word))
                {
                    map.AddLight(light);
                }
            }
            return(map.GetBrightnessLevel());
        }
 private int SolvePuzzle(string input)
 {
     var map = new MapPuzzle2(1000,1000);
     foreach (var word in GetWords(input))
     {
         foreach (var light in GetLightsForRange(word))
         {
             map.AddLight(light);
         }
     }
     return map.GetBrightnessLevel();
 }