refactor: removed map for visited and added field to node

This commit is contained in:
Karma Riuk
2023-08-15 15:41:24 +02:00
parent 27cb446573
commit 120bd29d86
4 changed files with 8 additions and 38 deletions

View File

@ -30,6 +30,7 @@ type Node struct {
Coords Coordinates
Up, Down *Node
Left, Right *Node
Visited bool `default:"false"`
}
func NewNode(coords Coordinates) *Node {