🚀 improve command computation

This commit is contained in:
platane
2020-07-21 01:03:29 +02:00
parent fd9d7dadf6
commit 1898ec16e4
3 changed files with 24 additions and 17 deletions

View File

@@ -15,9 +15,9 @@ const drawOptions = {
colorSnake: "purple",
};
const gameOptions = { colors: [1, 2, 3, 4], maxSnakeLength: 5 };
const gameOptions = { colors: [1, 2, 3], maxSnakeLength: 5 };
const grid0 = generateRandomGrid(42, 7, { ...gameOptions, emptyP: 3 });
const grid0 = generateRandomGrid(18, 7, { ...gameOptions, emptyP: 2 });
const snake0 = [
{ x: 4, y: -1 },