⬆️ update prettier

This commit is contained in:
platane
2025-02-20 19:58:59 +07:00
parent 79c252356c
commit ace186c41f
41 changed files with 94 additions and 94 deletions

View File

@@ -30,7 +30,7 @@ it("should return next snake", () => {
];
expect(snakeToCells(nextSnake(createSnakeFromCells(snk0), 1, 0))).toEqual(
snk1
snk1,
);
});

View File

@@ -30,7 +30,7 @@ export const setColor = (
grid: Grid,
x: number,
y: number,
color: Color | Empty
color: Color | Empty,
) => {
grid.data[getIndex(grid, x, y)] = color || 0;
};

View File

@@ -9,7 +9,7 @@ export const randomlyFillGrid = (
colors = [1, 2, 3] as Color[],
emptyP = 2,
}: { colors?: Color[]; emptyP?: number } = {},
rand = defaultRand
rand = defaultRand,
) => {
for (let x = grid.width; x--; )
for (let y = grid.height; y--; ) {