Skip to content
This repository was archived by the owner on May 4, 2021. It is now read-only.

Commit 4607669

Browse files
committed
Version 10.07.1
1 parent bc1fc99 commit 4607669

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

Code/Init.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
DEBUG = False
2-
VERSION = "10.07"
2+
VERSION = "10.07.1"
33

44
import os
55
import sys

Code/Memoria.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -88,19 +88,19 @@ def dameListaFen(self, piezas):
8888

8989
li = []
9090

91-
f = open("./Trainings/Checkmates by Eduardo Sadier/145032 positions of mate in two.fns", "rb")
92-
for l in f:
93-
if l:
94-
pz = 0
95-
l = l.split("|")[0]
96-
for c in l:
97-
if c == " ":
98-
break
99-
if not (c.isdigit() or c == "/"):
100-
pz += 1
101-
if pz == piezas:
102-
li.append(l)
103-
f.close()
91+
fedu = Util.listfiles(".", "Trainings", "Checkmates by Eduardo Sadier", "*.fns")[0]
92+
with open(fedu) as f:
93+
for l in f:
94+
if l:
95+
pz = 0
96+
l = l.split("|")[0]
97+
for c in l:
98+
if c == " ":
99+
break
100+
if not (c.isdigit() or c == "/"):
101+
pz += 1
102+
if pz == piezas:
103+
li.append(l)
104104

105105
me.final()
106106

bug.log

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Version 10.07
1+
Version 10.07.1

0 commit comments

Comments
 (0)