mirror of
https://github.com/onyx-and-iris/aoc2024.git
synced 2025-01-09 14:20:48 +00:00
remove {graph}.obstacles
This commit is contained in:
parent
df605fba15
commit
8bf3f603d5
@ -9,7 +9,6 @@ import (
|
||||
type graph struct {
|
||||
data []string
|
||||
startPoint point
|
||||
obstacles []point
|
||||
}
|
||||
|
||||
func newGraph() *graph {
|
||||
|
@ -18,13 +18,6 @@ func parseLines(r io.Reader) (*graph, error) {
|
||||
graph.startPoint = point{indx, count, N}
|
||||
}
|
||||
graph.data = append(graph.data, scanner.Text())
|
||||
|
||||
for i, r := range line {
|
||||
if r == '#' {
|
||||
graph.obstacles = append(graph.obstacles, point{i, count, obstacle})
|
||||
}
|
||||
}
|
||||
|
||||
count++
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user