This was a fun one! Written in Ruby, I decided on treating the board size as infinite by expanding it whenever the first or last row or column has an alive cell.

The entry file is game_of_life.rb in the root directory, and for simplicity, it just runs the "small exploder" pattern instead of taking an argument for initial state.

git.allgood.dev/jump_spider/ga

@jump_spider looking good. I just ran it and the output was an ever expanding board, is that what you intended or is that just how it looks as it begins to overlap in different directions?

@Absinthe
Yep! Like I said, my implementation treats the board as functionally infinite as cells grow towards the borders

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.