Skip to content

Commit

Permalink
day 15 cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaKateryna committed Dec 16, 2024
1 parent 3fafd64 commit 65ef95e
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions AdventOfCode/Day15.cs
Original file line number Diff line number Diff line change
Expand Up @@ -220,23 +220,6 @@ private Position GetNext(char move, Position from)
}
}

private Position GetPrevious(char move, Position from)
{
switch (move)
{
case '^':
return new Position(from.I + 1, from.J);
case 'v':
return new Position(from.I - 1, from.J);
case '>':
return new Position(from.I, from.J - 1);
case '<':
return new Position(from.I, from.J + 1);
default:
throw new NotImplementedException();
}
}

private int GetGPS(char[][] map, char box)
{
int result = 0;
Expand Down

0 comments on commit 65ef95e

Please sign in to comment.