Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Latest commit

 

History

History
16 lines (14 loc) · 350 Bytes

File metadata and controls

16 lines (14 loc) · 350 Bytes

LifeGame

This program is a LifeGame in Processing. The Rules are following.

Rule

num # Adjacent live cells
cell # The cell is live or death
next # The cell will be in next 
if num == 3 and cell == "death":
    next = "birth"
elif ( num < 2 or 3 < num ) and cell == "live":
    next = "death"