From eb6879f5a36c412a0931c2accde2cb1bc35c068c Mon Sep 17 00:00:00 2001 From: Sven Weidauer Date: Sun, 8 Dec 2024 19:39:15 +0100 Subject: [PATCH] Subscript --- 2024/src/main/kotlin/day8.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2024/src/main/kotlin/day8.kt b/2024/src/main/kotlin/day8.kt index 17e7834..8242290 100644 --- a/2024/src/main/kotlin/day8.kt +++ b/2024/src/main/kotlin/day8.kt @@ -17,7 +17,7 @@ fun main() { val dy = antenna.y - coordinate.y val secondAntenna = Grid.Coordinate(antenna.x + dx, antenna.y + dy) - secondAntenna != antenna && grid.inside(secondAntenna) && grid.get(secondAntenna) == frequency + secondAntenna != antenna && grid.inside(secondAntenna) && grid[secondAntenna] == frequency } fun isAntinode(coordinate: Grid.Coordinate) =