浏览代码

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

Sacha Ligthert 2 年之前
父节点
当前提交
b7af5b64ad
共有 1 个文件被更改,包括 2 次插入2 次删除
  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,
 			},
 		},