The program consists of two main modules: "Core" and "Front". The kernel is responsible for all calculations of each of the generations of the machine, based on the "rules" set by the user.
The front is responsible for the visual display of the cell field. Depending on the settings, the module applies colors for "live" and "dead" cells, window size, cell size, font size (there is a display of the current generation, the number of "live" and "dead" cells). Due to the modular structure, if desired, the Front module can be disabled in the configuration file. Using the mouse, you can change the state of the cell to the opposite.
To start the machine with the Front on, use the SPACE
key.
With the Front disabled, the vending machine will start automatically.
[CORE]
RANDOM_CELLS
= Generation of random "live" cells when the machine starts.RULE
= Machine conditions. It is set as follows: Birth / Survival. The number of neighbors at which the cell is born and the number at which the cell continues to exist are listed separated by commas. For example, the famous game "Life" works according to the 3 / 2,3 rule.RECORD
= Record the state of each generation to a log file (record.log). 1 - on, 0 - off.
[FRONT]
FRONT
= enable or disable the front module. 1 - on, 0 - off.CELL_SIZE
= SQUARE cell size in pixelsFONT_SIZE
= font sizeLIVE_COLOR
= live cell color in RGB (255,255,255)DEAD_COLOR
= RGB dead cell color (0,0,0)
The program works without dependencies if FRONT is disabled. Otherwise, the pygame
library is needed.
LMC
= ADD CELLSPACE
= START / PAUSEE
= EMPTY CELLSS
= CHANGE STYLEA
= CHANGE STYLE PER FPSR
= CELL RANDOM COLOR
- START
- PAUSE
- STEP ->
- <- STEP
- RESET
- CHANGE FPS
- SOUND
- CHANGE COLORS
- SCALE
- ON/OFF GRID LINES
- CHOOSE & PASTE PATTERNS
- PATTERNS ROTATING
- EXIT
- SCALE
- SCREEN (MENU)
- HELP
- OPTIONS