AlgoMaster Logo

Game of Life

board=[[0,1,0],[0,0,1],[1,1,1],[0,0,0]]
0 / 38
GEN 0IN-PLACE UPDATE010001111000RULESalive + 2 or 3 live -> survivesdead + exactly 3 live -> bornotherwise -> dies / stays deadNEIGHBORSBIT ENCODINGvalue = next<<1 | nowtwo bits per cell: next and now
algomaster.io
Step:Start: Apply Game of Life rules in-place using bit manipulation