diff gamelib/gameboard.py @ 461:279caa00f3fa

exchange rate should be per tree, not per plank
author Adrianna Pińska <adrianna.pinska@gmail.com>
date Mon, 23 Nov 2009 21:01:15 +0000
parents 7204c16ab64d
children aba7f1439571
line wrap: on
line diff
--- a/gamelib/gameboard.py	Mon Nov 23 20:53:11 2009 +0000
+++ b/gamelib/gameboard.py	Mon Nov 23 21:01:15 2009 +0000
@@ -841,6 +841,7 @@
         return len([(x,y) for x in range(width) for y in range(height) if self.tv.get((x,y)) == self.WOODLAND])
 
     def calculate_wood_groat_exchange_rate(self):
+        # per five planks
         width, height = self.tv.size
         sell_price = float(10*width*height)/self.trees_left()
         buy_price = sell_price*(1.1)