changeset 239:8224d1ac99c7

Foxes tend to increase with time
author Neil Muller <drnlmuller@gmail.com>
date Sat, 05 Sep 2009 10:04:32 +0000
parents 1a7097c0fc8f
children af19d6fdc1f8
files gamelib/gameboard.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gamelib/gameboard.py	Sat Sep 05 09:54:47 2009 +0000
+++ b/gamelib/gameboard.py	Sat Sep 05 10:04:32 2009 +0000
@@ -818,7 +818,8 @@
         # Foxes spawn just outside the map
         x, y = 0, 0
         width, height = self.tv.size
-        new_foxes = random.randint(3, 7)
+        min_foxes = (self.days+3)/2 # always more than one fox
+        new_foxes = random.randint(min_foxes, min_foxes*2)
         while len(self.foxes) < new_foxes:
             side = random.randint(0, 3)
             if side == 0: