🚿 clean up

This commit is contained in:
platane
2020-07-20 22:37:58 +02:00
parent 7377068a9a
commit dd23c1630e
11 changed files with 114 additions and 126 deletions

View File

@@ -3,9 +3,9 @@ import { Grid, Color } from "./grid";
const rand = (a: number, b: number) => Math.floor(Math.random() * (b - a)) + a;
export const generateEmptyGrid = (width: number, height: number) =>
generateGrid(width, height, { colors: [], emptyP: 1 });
generateRandomGrid(width, height, { colors: [], emptyP: 1 });
export const generateGrid = (
export const generateRandomGrid = (
width: number,
height: number,
options: { colors: Color[]; emptyP: number } = {