Whoo got unit tests that are failing...

This commit is contained in:
Lani Aung
2025-06-07 15:26:51 -07:00
parent 5e9039efad
commit 44053555ec
15 changed files with 2472 additions and 114 deletions
+3 -2
View File
@@ -2,7 +2,7 @@ import Crack from "./crack"
export default class State {
readonly canvas: HTMLCanvasElement
readonly colors: number[]
colors: number[]
readonly maxCracks: number
readonly grid: number[][]
seeds: {x: number, y: number}[]
@@ -19,7 +19,8 @@ export default class State {
this.init()
}
init() {
init(colors?: number[]) {
if (colors) this.colors = colors
this.cracks.length = 0
this.grid.length = 0
this.seeds.length = 0