🚀 smarter snake

This commit is contained in:
platane
2020-07-21 00:34:22 +02:00
parent 73bfce908e
commit fd9d7dadf6
6 changed files with 167 additions and 43 deletions

View File

@@ -37,7 +37,10 @@ export const generateContributionSnake = async (userName: string) => {
colorSnake: "purple",
};
const gameOptions = { maxSnakeLength: 5 };
const gameOptions = {
maxSnakeLength: 5,
colors: Array.from({ length: colorScheme.length - 1 }, (_, i) => i + 1),
};
const gifOptions = { delay: 10 };