I am learning Ruby and Vim. I’m also attending the Preston Codejo hosted by Magma Digital, where were using Ruby as the driver.
As I am wont when learning a new platform (or new techniques on a new platform), there is a build of Conway’s Game of Life on GitHub:
This is a curses based implementation which can run with either the defaults, or run with parameters:
ruby life.rb [rows] [cols] [num_pos]
rows - Number of rows to display
cols - Number of cols to display
num_pos - Number of initial positions to set. This is done randomly, so you are likely to get less positions than specified.
Press q to quit when you’re bored. Feel free to fork, make changes, ideas, pulls, etc.
I'm Kian Ryan
TLDR; I sport, code, make stuff, and
play adventure games.
Stay safe. Trans rights are human rights. NFTs are still a scam.
Still get f-ed Putin. Imagine the *real world* good you could do with
There are no ads on this blog and as far as I can remember, never have been.
☕ If you want to support any of the work done here, or elsewhere,
you can buy me a coffee on Ko-Fi.
Our latest ko-fi supporters.
No coffees purchased since we put this little widget live (or in the last
two weeks). Others have kindly donated and you can see
their donations here.