Skip to content

zmarquez/kata-chocolate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kata-chocolate

https://www.hackerrank.com/challenges/chocolate-feast

Little Bob loves chocolates, and goes to a store with $N in his pocket. The price of each chocolate is $C. The store offers a discount: for every M wrappers he gives to the store, he gets one chocolate for free. How many chocolates does Bob get to eat?

Practicing kata

You will need composer.

curl -sS https://getcomposer.org/installer | php

Then, clone this project.

git clone git@github.com:zmarquez/kata-chocolate.git

And install dependences with composer.

php composer.phar install

Then add your classes to 'src/Kata' and your test cases to 'src/Kata/Tests' and run phpunit to run your tests.

php bin/phpunit tests/unit

About

Practice with TDD

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages