Wednesday, April 13, 2011

Bug #4 fixed, onto bug #5

We figured out why the game doesn't necessarily enforce a "fewest coins" policy;  this is because it allows the smallest required unit in a fewest coins solution to be further broken up.

To illustrate this, we can look at $4.35.

The smallest coins solution in largest to smallest order would be:
4 dollars, 1 quarter, and 1 dime.

In this case, the 1 dime would be allowed to be broken up into any of its possible combinations such as 2 nickels, 1 nickel and 5 pennies, or 10 pennies.

We decided to allow this functionality, and so bug #4 is fixed.

Fixing Bug #5 may be as easy as moving the one-line day increment to different areas until we find the place that works for us. 

No comments:

Post a Comment