Skip to content

Latest commit

 

History

History
12 lines (7 loc) · 599 Bytes

README.md

File metadata and controls

12 lines (7 loc) · 599 Bytes

Code Golf Challenges

My attempts to implement simple algorithms in Python with as few statements as possible.

Conway's Game of Life

See Wikipedia for the rules. To try it:

python life.py

To stop it press Ctrl+C. To change the size of the board, modify the value of the boardSize variable. To change the initial board configuration, assign your initial configuration to board as a list of rows which are each a list of booleans (e.g. board = [[False, False, False],[True, True, True],[False, False, False]])