rename var move for p2

This commit is contained in:
onyx-and-iris 2023-12-22 22:23:43 +00:00
parent e541631a35
commit 2814b12750

View File

@ -3,9 +3,9 @@ package main
import "sync"
// returns the number of unique nodes (reducing multiple nodes with different directions to one)
func uniqueNodes(move *mover) int {
func uniqueNodes(mover *mover) int {
uniqueCoords := []coords{}
for _, node := range move.nodes {
for _, node := range mover.nodes {
if !coordInCoords(node.coords, uniqueCoords) {
uniqueCoords = append(uniqueCoords, node.coords)
}