philchapdelaine / game-of-life

Haskell implementation of Conway's Game of Life
GNU General Public License v3.0
0 stars 1 forks source link

Function to trim dead chunks off board #7

Closed emilyyjia closed 3 years ago

emilyyjia commented 3 years ago

The board in the game of life is infinite. Ideally we want to store the portion of the board that contains the alive cells. Given how the game of life progresses, we could end up with a big chunk of the stored board all dead, therefore we might want to implement a function that trims off this section

emilyyjia commented 3 years ago

Here's my best attempt at explaining in a drawing. So all the cells outside of the blue highlight should be removed from the board IMG_7083

emilyyjia commented 3 years ago

not exactly like the above picture, but all dead cells are trimmed off every iteration