Change to be paused by default.
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m59s

This commit is contained in:
Cameron Redmore 2025-08-12 11:55:28 +01:00
parent 412fbc37f7
commit 2128c6823c
No known key found for this signature in database

View file

@ -27,7 +27,7 @@ class GameOfLife {
private offsetX: number = 0;
private offsetY: number = 0;
private zoomLevel: number = 1;
private isPaused: boolean = false;
private isPaused: boolean = true;
private isDragging: boolean = false;
private lastMouseX: number = 0;
@ -223,22 +223,6 @@ class GameOfLife {
}
}
private seedInitialPattern() {
// Add a simple glider pattern to start
const glider = [
{ x: 1, y: 0 },
{ x: 2, y: 1 },
{ x: 0, y: 2 },
{ x: 1, y: 2 },
{ x: 2, y: 2 }
];
for (const cell of glider) {
this.activeCells.add(this.cellToString(cell));
this.potentialCells.add(this.cellToString(cell));
}
}
private cellToString(cell: Cell): string {
return `${cell.x},${cell.y}`;
}