项目作者: userexit

项目描述 :
Python implemenation of Conway's Game of Life using bitwise operations
高级语言: Python
项目地址: git://github.com/userexit/Game-of-Life-Python.git
创建时间: 2020-09-30T19:40:52Z
项目社区:https://github.com/userexit/Game-of-Life-Python

开源协议:

下载


An implementation of Conway’s (R.I.P) Game of Life in Python.

Game of Life implementation with a randomized initial grid state and drawn using TKinter.

gol

Settings are placed at the top of the file for tinkering.

Bitwise stuff

Typically, Game of Life grids are stored in a 2D bool array but I decided to store it in an array of integers wherein one bit represents one cell and different bitwise operations are used to access specific cell data. This could be more efficient than using a 2D boolean array, I wouldn’t know. It’s a lot more fun, however.