GithubHelp home page GithubHelp logo

codingkatas's Introduction

Bowling Kata

This project originated when a coworker introduced me to the concept of a coding "kata" (http://www.peterprovost.org/blog/2012/05/02/kata-the-only-way-to-learn-tdd), the idea that you should spend 30 mins a day practicing and honing your programming skills. I chose to do the Bowling Kata, and while I don't necessarily work on it every day, I do work on it in bits and pieces, test driving bits and pieces when I get the chance. Once I think I have a working solution, or close enough, I'll start writing IT's to test end to end correctness.

The basic idea of the Bowling Kata is simply to accept input around a game of bowling (i.e. pins knocked down) and then calculated the score given standard bowling rules (http://en.wikipedia.org/wiki/Bowling). I've tried to structure my objects in a reuseable and maliable way, to alter the structure if I want to tweek it down the road. For example, I've tried to avoid magic numbers around any pin calculations, in case there's a need for some super cool bonus round with 50 pins (have you ever played Wii bowling? They totally do it). I'm hoping that by the time this kata is over, I end up with maintainable, clear code that anyone could come along and use.

codingkatas's People

Contributors

neumann1990 avatar

Watchers

 avatar

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.