Giter VIP home page Giter VIP logo

game_of_life's Introduction

Conway's Game of Life Code Kata

Written to serve as the basis for a JavaScript Code Kata.

See it running.

If you want to do the Kata, please do not search for the implementation of the missing functionality. Try to solve it by yourself first.

Usage

In the lib directory of the master branch of the repository, implement all the functions that throw a TODO string. Write tests for your functions as well. The tests are located in test/unit and test/integration directories. You can run the tests by opening the test suite in your browser.

TDD is a good practice for doing the Kata. First, choose a function to implement, then

  1. write a simple test for it
  2. see the test fail when running the test suite
  3. write just enough implementation for the test to pass
  4. refactor, splitting the function into smaller functions if necessary (write tests for those functions as well)
  5. write another, but more complex, test for the function
  6. goto 2 if the function does not meet the requirements

A Rakefile exists for executing common project tasks. See the available tasks by running rake -T in the project's root directory. Using rake requires a Ruby environment.

Solutions

  • solution-ref – the solution made when writing the basis for the Kata originally
  • solution-jkl-dojo – the solution made at Agile Finland's coding dojo event on 17th August 2011 in Jyväskylä

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.