Skip to content

This kata is working software (currently). The goal is to refactor it, keeping the Liskov Substitution Principle in mind.

License

Notifications You must be signed in to change notification settings

DarthStrom/game-of-life-refactoring-kata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Game of Life Refactoring Kata

This kata currently includes working code and tests. Your mission is to refactor the code with the Liskov Substitution Principle in mind. While the first thing on your mind should be LSP, don't be afraid to use other design principles to make this happen.

This kata is based on the Game of Life kata at codingdojo.org.

More info on the Liskov Substitution Principle:

Getting started

You should have Node.js, npm, and jasmine-node. You can install jasmine-node globally with npm install -g jasmine-node.

Once you have jasmine-node, you can run the tests with jasmine-node game-spec.js. They should pass the first time before you make any changes. Any time you make a change, you'll want to run the tests again to make sure you didn't break anything.

Here are some things to think about as you refactor

  • One smell that can indicate a Liskov Substitution Principle violation is the presence of instanceof
  • Once this has been recognized, try organizing the code so that LSP is not violated.
  • Remember that we still don't want unnecessarily duplicated code.

About

This kata is working software (currently). The goal is to refactor it, keeping the Liskov Substitution Principle in mind.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published