Conway GOL: add scenarios & start/pause loop
Add predefined scenarios (SIMPLE, PULSAR, GUN) and UI controls to generate them; introduce a start/pause game loop driven by an Angular signal. Reduce default grid to 40x40 and max grid to 100, speed up default generation to 30ms, and pause the game when grid size changes. Implement scenario setup helpers (simple, pulsar, glider gun), life-rule evaluation, neighbor counting, grid swapping and a delay helper. Update template to show scenario buttons and conditional start/pause button, and add corresponding i18n entries for English and German.
This commit is contained in:
@@ -342,8 +342,12 @@
|
||||
"GOL": {
|
||||
"TITLE": "Conway's Game of Life",
|
||||
"START": "Start",
|
||||
"PAUSE": "Pause",
|
||||
"RANDOM_SCENE": "Random",
|
||||
"EMPTY_SCENE": "Empty",
|
||||
"SIMPLE_SCENE": "Simple",
|
||||
"PULSAR_SCENE": "Pulsar",
|
||||
"GUN_SCENE": "Gun",
|
||||
"ALIVE": "Alive",
|
||||
"DEAD": "Empty",
|
||||
"SPEED": "Time per Generation",
|
||||
|
||||
Reference in New Issue
Block a user