mirror of
https://github.com/fairyglade/ly.git
synced 2026-09-21 19:40:20 +00:00
## What are the changes about? Allows the game of life animation to be ran with configurable rules, specifically: the neighbors required for birth and survival. ### Example: [B3/S12345 (Maze)](https://conwaylife.com/wiki/OCA:Maze) (where numbers after B are neighbors required for birth, and S for survival) <video src="/attachments/49120c5e-ce21-4025-852e-924befbc2621" title="Screencast_20260814_233338" controls></video> Introduces two keys to the config: ```ini # Sets the multiple amounts of neighbors needed for a cell to survive. # Each numerical digit from 0 to 8 inclusive in this string becomes # one of the targets required for this cell to survive. # Example: a string of "23" makes the cell survive on 2 or 3 neighbors gameoflife_param_survival = "23" # Sets the multiple amounts of neighbors needed for a cell to be born. # Each numerical digit from 0 to 8 inclusive in this string becomes # one of the targets required for this cell to be born. # Example: a string of "3" makes the cell be born on 3 neighbors gameoflife_param_birth = "3" ``` ## What existing issue(s) does this resolve? Solves !1023 ## Pre-requisites - [x] I have tested & confirmed the changes work locally - [x] I have read and fully adhere to the rules set in the contributing guidelines found in `CONTRIBUTING.md` Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/1041 Reviewed-by: AnErrupTion <anerruption+codeberg@disroot.org>
This commit is contained in:
@@ -290,6 +290,18 @@ gameoflife_frame_delay = 6
|
||||
# 0.7+ -> Dense, chaotic patterns
|
||||
gameoflife_initial_density = 0.4
|
||||
|
||||
# Sets the multiple amounts of neighbors needed for a cell to be born.
|
||||
# Each numerical digit from 0 to 8 inclusive in this string becomes
|
||||
# one of the targets required for this cell to be born.
|
||||
# Example: a string of "3" makes the cell be born on 3 neighbors
|
||||
gameoflife_param_birth = "3"
|
||||
|
||||
# Sets the multiple amounts of neighbors needed for a cell to survive.
|
||||
# Each numerical digit from 0 to 8 inclusive in this string becomes
|
||||
# one of the targets required for this cell to survive.
|
||||
# Example: a string of "23" makes the cell survive on 2 or 3 neighbors
|
||||
gameoflife_param_survival = "23"
|
||||
|
||||
# Remove main box borders
|
||||
hide_borders = false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user