def genEnginesElo(self): d = Engines.leeRivales() li = [] for elo, clave, depth in GestorElo.listaMotoresElo(): cm = d[clave].clona() cm.nombre = "%d - %s (%s %d)" % (elo, cm.nombre, _("depth"), depth) cm.clave = cm.nombre cm.fixed_depth = depth cm.elo = elo li.append(cm) li.sort(key=lambda x: x.elo) return li
def genEnginesElo(self): d = OSEngines.read_engines(Code.folder_engines) li = [] for elo, key, depth in GestorElo.listaMotoresElo(): if key in d: cm = d[key].clona() cm.name = "%d - %s (%s %d)" % (elo, cm.name, _("depth"), depth) cm.clave = cm.name cm.fixed_depth = depth cm.elo = elo li.append(cm) li.sort(key=lambda x: x.elo) return li