Skip to content

Repeatable programming challenges using TDD and PHPSpec

Notifications You must be signed in to change notification settings

najibu/code_kata_php

Repository files navigation

Code Katas in PHP

If martial artists use kata as a method for exercise and practice, what might be the equivalent for coders, like us? Well, code katas are short, repeatable programming challenges, which are meant to exercise everything from your focus, to your workflow.

Programming Challenges using TDD and PHPSpec

  1. Prime Factors
    Use TDD to build a class that will compute the prime factors for any given number.

2. Roman Numerals
Build a class that will automatically translate a number into its roman numeral counterpart.
3. Bowling Game
Recreate the scoring system for a game of bowling. We deal with scoring spares, or strikes, or multiple strikes!
4. String Calculator
Build a string calculator class; however, there are a number of rules and gotchas related to how we perform the addition.
5. Tennis Scoring
Tennis scoring kata. If you're familiar with the game, you'll know that the rules can be a bit tricky. As such, this will make for a great exercise!
6. FizzBuzz
Review the obligatory FizzBuzz exercise, and learn just how easy it is to solve.
7. Small Refactors and the Gilded Rose
Tackle the intimidating Gilded Rose kata in PHP. Our job is to translate a monstrously confusing set of countless conditionals into a small series of readable methods.

Thank you for checking out the programming challenges!

About

Repeatable programming challenges using TDD and PHPSpec

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published