Skip to content

Commit

Permalink
Removed some redundant bits from day 16
Browse files Browse the repository at this point in the history
  • Loading branch information
elpollouk committed Dec 16, 2023
1 parent 2fdd7bd commit eca61f5
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions Advent2023/Day16.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ public class Day16
const int ActivationNone = 0;
const int ActivationHorizontal = 1;
const int ActivationVertical = 2;
const int ActivationBoth = ActivationHorizontal | ActivationVertical;

class Beam(int x, int y, int dX, int dY)
{
Expand Down Expand Up @@ -116,15 +115,6 @@ long Simulate(char[,] grid, Beam initialBeam)
return activations.Count;
}

void DebugDump(char[,] grid, Dictionary<(int x, int y), int> activations)
{
foreach (var pos in activations.Keys)
{
grid[pos.x, pos.y] = '#';
}
grid.DebugDump(c => c);
}

[Theory]
[InlineData("Data/Day16_Test.txt", 46)]
[InlineData("Data/Day16.txt", 7482)]
Expand Down

0 comments on commit eca61f5

Please sign in to comment.