Change to be paused by default.
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m59s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m59s
This commit is contained in:
parent
412fbc37f7
commit
2128c6823c
1 changed files with 1 additions and 17 deletions
|
@ -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}`;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue