瀏覽代碼

Better directions, still lost

Piotr Czajkowski 1 年之前
父節點
當前提交
1aa5038f51
共有 1 個文件被更改,包括 3 次插入3 次删除
  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}
 	}