diff --git a/Code/Init.py b/Code/Init.py index b604e90..d3acf92 100644 --- a/Code/Init.py +++ b/Code/Init.py @@ -1,5 +1,5 @@ DEBUG = False -VERSION = "10.07" +VERSION = "10.07.1" import os import sys diff --git a/Code/Memoria.py b/Code/Memoria.py index dffbc70..c5de08c 100644 --- a/Code/Memoria.py +++ b/Code/Memoria.py @@ -88,19 +88,19 @@ def dameListaFen(self, piezas): li = [] - f = open("./Trainings/Checkmates by Eduardo Sadier/145032 positions of mate in two.fns", "rb") - for l in f: - if l: - pz = 0 - l = l.split("|")[0] - for c in l: - if c == " ": - break - if not (c.isdigit() or c == "/"): - pz += 1 - if pz == piezas: - li.append(l) - f.close() + fedu = Util.listfiles(".", "Trainings", "Checkmates by Eduardo Sadier", "*.fns")[0] + with open(fedu) as f: + for l in f: + if l: + pz = 0 + l = l.split("|")[0] + for c in l: + if c == " ": + break + if not (c.isdigit() or c == "/"): + pz += 1 + if pz == piezas: + li.append(l) me.final() diff --git a/bug.log b/bug.log index 9bf8955..f7482fe 100644 --- a/bug.log +++ b/bug.log @@ -1 +1 @@ -Version 10.07 +Version 10.07.1