Giter Club home page Giter Club logo

conway-ruby-starter-kit's Introduction

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!
  • git reset --hard at the end!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.