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:
https://github.com/kianryan/RubyGameLife
This is a curses based implementation which can run with either the defaults, or run with parameters:
ruby life.rb [rows] [cols] [num_pos] where: 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.