- results = {}
-
- for name in self.POSSIBLE_ANALYSES[mode] :
- meth = getattr(self, name)
- results[name] = meth()
+ try :
+ self.mode = mode = self.getMode()
+ results.append(('Mode de jeu', mode))
+ for name in self.POSSIBLE_ANALYSES[mode] :
+ meth = getattr(self, name)
+ results.append((meth.__doc__, meth()))
+ except :
+ pass