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 ee9988b972
commit 408b4c84c4
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 {