Browse Source

Fix the starting tail (no idea why it works this way).

Sacha Ligthert 2 năm trước cách đây
mục cha
commit
b7af5b64ad
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      snake.go

+ 2 - 2
snake.go

@@ -14,7 +14,7 @@ func initSnake(snakex int, snakey int) Snake {
 		},
 		tail: []Position{
 			{
-				x: x - 1,
+				x: x - 3,
 				y: y,
 			},
 			{
@@ -22,7 +22,7 @@ func initSnake(snakex int, snakey int) Snake {
 				y: y,
 			},
 			{
-				x: x - 3,
+				x: x - 1,
 				y: y,
 			},
 		},