Skip to content

Commit

Permalink
2024 day 8
Browse files Browse the repository at this point in the history
  • Loading branch information
TomW1605 committed Dec 8, 2024
1 parent e344da1 commit f6bf213
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions 2024 - Python/Day 08/Day08.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import itertools
import math
import time
from itertools import count

class Antenna:
def __init__(self, x, y, freq):
Expand All @@ -23,15 +21,6 @@ class Space:
def __init__(self, contents):
self.contents = contents

# @property
# def contents(self):
# return self._contents
#
# @contents.setter
# def contents(self, value):
# if self._contents == ".":
# self._contents = value

def __str__(self):
if isinstance(self.contents, Antenna):
return self.contents.freq
Expand All @@ -47,7 +36,6 @@ def part1(input_lines):
for yy in range(len(input_lines)):
row = []
for xx in range(len(input_lines[yy])):
antenna = "."
if input_lines[yy][xx] != '.':
antenna = Antenna(xx, yy, input_lines[yy][xx])
if antenna.freq not in antennas:
Expand Down Expand Up @@ -96,7 +84,6 @@ def part2(input_lines):
for yy in range(len(input_lines)):
row = []
for xx in range(len(input_lines[yy])):
antenna = "."
if input_lines[yy][xx] != '.':
antenna = Antenna(xx, yy, input_lines[yy][xx])
if antenna.freq not in antennas:
Expand Down

0 comments on commit f6bf213

Please # to comment.