Friday, April 8, 2011

Bug #3 and Bug #4

After Shannon changed the code so that it would not advance the day until a valid purchase was made, we were mostly finished with bug #3. However, the change did cause another bug; every time you enter a "too large" purchase, there is a chance of a random event still happening. You could possibly exploit the game by causing random events that benefit you without advancing the day or decaying items. I was able to fix this by not letting the user leave the store until a valid order is made.
In class, we were able to further enhance this fix by adding a message that states "You attempted to order more items than you can afford. Try again."

Bug #4 is a bit trickier; we spent time in class looking at the code and trying to figure out where and how we can change things. We believe we have it narrowed down to a specific function. I plan on looking at the code this weekend.

No comments:

Post a Comment