Browse Source

Better directions, still lost

Piotr Czajkowski 1 year ago
parent
commit
1aa5038f51
1 changed files with 3 additions and 3 deletions
  1. 3 3
      17/code.go

+ 3 - 3
17/code.go

@@ -178,11 +178,11 @@ func getWest(board [][]int, height int, width int, lava Destination) []Destinati
 func getDirections(direction int) []int {
 	switch direction {
 	case North:
-		return []int{West, North, East}
+		return []int{East, North, West}
 	case East:
-		return []int{North, East, South}
+		return []int{East, South, North}
 	case South:
-		return []int{West, South, East}
+		return []int{East, South, West}
 	case West:
 		return []int{South, West, North}
 	}