Facepalm

I spent several precious minutes trying to figure out why "Factory.try_to_start_building" wasn't getting printed by this method.

  def try_to_start_building(self, cls):
    "Factory.try_to_start_building" ###
    missing = self.resources.use(**cls.construction_resources)
    if missing:
      self.missing_resources = missing
    ...

(log in to comment)

Comments

At least you have a docstring. :-P
Oops. :)

That's the price we pay for Python sometimes. Perfectly legal but perfectly non-sensical statements.