Wednesday, December 7, 2011

Supermarket

Instead of banging my head against the wall trying to figure out how to complete the dice game, I decided to try something easier that would still give me a chance to learn by doing. I began working on a kata to determine the price of a shopping cart filled with fruit.

The trick is that supermarkets often have tricky sales: three for a dollar, 25% off when you buy $5 or more, buy 2 get one free, etc.

Building this application allowed me to keep moving forward when I felt very stuck. I'm hoping that I can go back to the dice game after completing this project and approach the problem with fresh eyes and more hours of experience.

Here's the link to Fruit Stand on GitHub.

No comments:

Post a Comment