Răsfoiți Sursa

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

Sacha Ligthert 2 ani în urmă
părinte
comite
b7af5b64ad
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  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,
 			},
 		},