Skip to content

Commit

Permalink
remove useless lines
Browse files Browse the repository at this point in the history
  • Loading branch information
hassanshamim committed Dec 13, 2017
1 parent 3e489d5 commit 6825744
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions advent2017/day13_packet_scanners.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ def scanner_on_top(rnge, turn=0):
if rnge == 0:
return False
trip_time = (rnge - 1) * 2
if turn >= trip_time:
return turn % trip_time == 0
else:
return turn == 0
return turn % trip_time == 0


def part1(data=PUZZLE_INPUT):
Expand Down

0 comments on commit 6825744

Please sign in to comment.