farhanrahman / kyoto

18 stars 7 forks source link

GDPRate calculation #101

Closed piotroslaw closed 12 years ago

piotroslaw commented 12 years ago

The function to update GDPRate in AbstractCOuntry was missing break statements in switch/case, I have just corrected it. As it was, it would always return RECESSION as eceonmy state.

Which leads to a question - was this tested? Are the formulas correct? I am asking because they are slightly different in the document on google docs, and frankly I have no idea how the formula works.

tumblerer commented 12 years ago

The formula is fine and was tested in isolation from the economy code.

piotroslaw commented 12 years ago

ok