GitXplorerGitXplorer
g

gol-dang-fun

public
1 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
9cdc3f1d0809acd936f1df2b20d9bbf8266481b8

awesome_print is awesome

ggeeksam committed 3 years ago
Unverified
142ce03068531dcc0f6ac90b25accc65e25b5397

Extract Method, again

ggeeksam committed 3 years ago
Unverified
887e3184485ab6fb75ba89d746ed335ea244bdb1

Extract Method

ggeeksam committed 3 years ago
Unverified
bbf96b1d63843dffa647b68dca531467d05096b9

Building strings the functional way :)

ggeeksam committed 3 years ago
Unverified
b095310f268e2590554824b3d7cb1ef245f077f4

generalize "maybe_cell"

ggeeksam committed 3 years ago
Unverified
99e3c631368f4bc360ca446da5db724cbfa5cc6f

teasing apart another concept or two

ggeeksam committed 3 years ago

README

The README file for this repository.

Game of Life (Ruby starter edition)

This is just a template for quickly starting a new Game of Life pass using Ruby.

Rules

Today we'll be working on Conway's game of life.

The game is a cellular automaton, where cells live or die according to a set of four rules:

  • Births: Each dead cell adjacent to exactly three live neighbors will become live in the next generation.

  • Death by isolation: Each live cell with one or fewer live neighbors will die in the next generation.

  • Death by overcrowding: Each live cell with four or more live neighbors will die in the next generation.

  • Survival: Each live cell with either two or three live neighbors will remain alive for the next generation.

Installation

  • Make sure you have a recent-ish running Ruby
  • fork this repo on github, then clone locally
  • In a terminal, run bundle install
  • If that completes successfully, run bundle exec rspec.
    • If you see one passing test, congratulations! You're good to go!
    • If you get an error message, congratulations! You're about to learn something!

Getting Started

  • Tests go in ./spec/conway_spec.rb
  • Code goes in ./lib/conway.rb
  • Run the tests with bundle exec rspec
  • ???
  • Profit!