Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 350 Bytes

README.md

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"