Conways Game of Life 2.0

(remixed from Conways Game of Life, by tofubug) by tofubug
See Code Download Embed
Conway's Game of Life 2.0

Runs Conway's Game of Life simulations on adjustable sized board with adjustable sized cells.

Game can be paused to allow free drawing.

Game includes preloaded templates that can be added to the center of the game

Controls:

    P       - Pause/Unpause game
    C       - Clear game
    R       - Fill game with random pattern
    Q       - Quit game
    Enter - Step through a paused game

Template Controls:

    L - Cycles through selected 'Still Life' 
    O - Cycles through selected 'Oscillators'
    S - Cycles through selected 'Spaceships'

Mouse Controls:

    Left Click - 
        If a template is selected ( mini  
        template shown above game ) then 
        add template to center of game
        
        Otherwise toggle that individual cell

Known issue(s)

    When hitting the stop button program complains it cannot operate on a deleted sprite not quite sure how to compensate for that. Running it again works

Bug fixe(s):

    Entire game turn now evaluates ALL cells before applying changes. Fixes issue where cells were evaluating randomly causing other cells to evaluate eroneously 

    Swapped out touching logic for proximity logic. Fixes issue where game would not run on shared public site game player

    Added logic to only allow certain actions to be done by the parent cell and not its clones. Fixed issues with pausing and other areas.

New Feature(s):

    Added additional Keyboard Controls

    Added Templates

    Swapped 'Live' for cached evaluation

Created December 30, 2023

Last updated January 6, 2024

Published January 4, 2024