Subscript

This commit is contained in:
Sven Weidauer 2024-12-08 19:39:15 +01:00
parent 7ace3b8119
commit eb6879f5a3

View file

@ -17,7 +17,7 @@ fun main() {
val dy = antenna.y - coordinate.y val dy = antenna.y - coordinate.y
val secondAntenna = Grid.Coordinate(antenna.x + dx, antenna.y + dy) 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) = fun isAntinode(coordinate: Grid.Coordinate) =