Skip to content

Commit

Permalink
day14: fix when downloading fresh data from website
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-ong committed Dec 25, 2023
1 parent ce7a412 commit e99e7c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions day14/day14.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ def simulate_world(world_rows: list[list[str]]) -> list[list[str]]:
def get_input() -> World:
"""grabs input, rotated so that left is north"""
with open("day14/input.txt") as file:
world = list(file)
lines = [line.strip() for line in file]

return World(world)
return World(lines)


def question2(world: World) -> int:
Expand Down

0 comments on commit e99e7c7

Please sign in to comment.