🚀 imrpove algorithm

This commit is contained in:
platane
2020-10-31 17:23:19 +01:00
parent d81ecec836
commit b595e7de53
22 changed files with 707 additions and 451 deletions

View File

@@ -4,7 +4,7 @@ import { realistic as grid } from "@snk/types/__fixtures__/grid";
import { createGif } from "..";
let snake = createSnakeFromCells(
Array.from({ length: 6 }, (_, i) => ({ x: i, y: -1 }))
Array.from({ length: 4 }, (_, i) => ({ x: i, y: -1 }))
);
const chain = [snake];