🚀 refactor demo
This commit is contained in:
9
packages/compute/__fixtures__/snake.ts
Normal file
9
packages/compute/__fixtures__/snake.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
// @ts-ignore
|
||||
import { createSnake } from "../snake";
|
||||
|
||||
const create = (length: number) =>
|
||||
createSnake(Array.from({ length }, (_, i) => ({ x: i, y: -1 })));
|
||||
|
||||
export const snake1 = create(1);
|
||||
export const snake3 = create(3);
|
||||
export const snake7 = create(7);
|
||||
Reference in New Issue
Block a user