Skip to content

Commit 222deec

Browse files
committed
Version R 2.00c
1 parent 190bfed commit 222deec

File tree

13 files changed

+31
-14
lines changed

13 files changed

+31
-14
lines changed
-28 Bytes
Binary file not shown.

Resources/Locale/zh/lang.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
NAME=简体中文
22
AUTHOR=Zoushen,Kevin Sicong Jiang, Stephen Yang
3-
%=88
3+
%=100

bin/Code/About/AboutBase.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,7 @@ def games():
489489
("Norman Pollock", "http://www.nk-qy.info/40h/"),
490490
("STS<br>" + _X(_("Created by %1"), "Dan Corbit,Swaminathan"), "https://sites.google.com/site/strategictestsuite/about-1"),
491491
("liChess database", "https://database.lichess.org"),
492+
("lichess openings", "https://github.com/lichess-org/chess-openings"),
492493
)
493494
txt = '<center><table border="1" cellpadding="5" cellspacing="0" >'
494495
for nom, web in li:
@@ -522,7 +523,6 @@ def programming(self):
522523
("sortedcontainers", _X(_("Created by %1"), "Grant Jenks"), "http://www.grantjenks.com/docs/sortedcontainers/"),
523524
("lichess-puzzler", _X(_("Created by %1"), "Thibault Duplessis"), "https://github.com/ornicar/lichess-puzzler"),
524525
("polib", "David Jean Louis and others", "https://github.com/izimobil/polib"),
525-
("ECO codes", "Christopher Conkie", ""),
526526
)
527527
txt = self.table_ini()
528528

bin/Code/Base/Position.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ def legal(self):
4848
# regardless of whether there is a pawn in position to make an en passant capture
4949
ok = len(self.en_passant) == 2
5050
if ok:
51-
ep = self.en_passant
5251
lt, nm = self.en_passant[0], self.en_passant[1]
5352
if not (nm in "36"):
5453
ok = False

bin/Code/Config/Configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ def list_translations(self):
618618
if os.path.isfile(fini):
619619
dic = Util.ini_dic(fini)
620620
li.append((uno.name, dic["NAME"], int(dic["%"]), dic["AUTHOR"]))
621-
li = sorted(li, key=lambda lng: lng[0])
621+
li = sorted(li, key=lambda lng: "AAA" + lng[0] if lng[1] > "Z" else lng[1])
622622
return li
623623

624624
def eloActivo(self):

bin/Code/Config/WindowConfig.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def options(parent, configuration):
175175

176176
form.add_tab("%s 2" % _("Appearance"))
177177

178-
# Modo no competitivo ############################################################################################
178+
# ELOS ############################################################################################
179179
form.separador()
180180
form.spinbox(_("Lucas-Elo"), 0, 3200, 70, configuration.x_elo)
181181
form.separador()
@@ -302,6 +302,8 @@ def options(parent, configuration):
302302
dboard = ""
303303
configuration.x_digital_board = dboard
304304

305+
configuration.x_elo, configuration.x_michelo, configuration.x_fics, configuration.x_fide, configuration.x_lichess = li_nc
306+
305307
return True
306308
else:
307309
return False

bin/Code/Openings/OpeningsStd.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,3 +150,16 @@ def is_book_fenm2(self, fenm2):
150150

151151

152152
ap = ListaOpeningsStd()
153+
154+
155+
# Borrar en la versión 3.0---------------------------------
156+
157+
class OpeningStd(Opening):
158+
def __init__(self, key):
159+
Opening.__init__(self, key)
160+
161+
@property
162+
def tr_name(self):
163+
return self.trNombre
164+
165+
# ^^^^Borrar en la versión 3.0---------------------------------

bin/Code/QT/WindowArbol.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,7 @@ class WindowArbol(LCDialog.LCDialog):
715715
def __init__(self, w_parent, game, nj, procesador):
716716

717717
main_window = w_parent
718+
parent_board = main_window.board
718719

719720
self.procesador = procesador
720721

@@ -736,7 +737,7 @@ def __init__(self, w_parent, game, nj, procesador):
736737
tb.new(_("Save"), Iconos.Grabar(), self.grabar)
737738
tb.new(_("Cancel"), Iconos.Cancelar(), self.cancelar)
738739

739-
self.infoMove = InfoMove(position.is_white)
740+
self.infoMove = InfoMove(parent_board.is_white_bottom)
740741

741742
w = QtWidgets.QWidget(self)
742743
ly = Colocacion.V().control(tb).control(self.infoMove)

bin/Code/Tactics/ManagerTactics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def set_toolbar(self, modo):
129129
li_opciones.insert(1, TB_CHANGE)
130130
# elif modo == "first_move"
131131

132-
self.set_toolbar(li_opciones)
132+
Manager.Manager.set_toolbar(self, li_opciones)
133133

134134
def show_label_positions(self):
135135
html = self.tactic.work_info_position()
@@ -301,11 +301,11 @@ def add_move(self, move, si_nuestra):
301301

302302
self.pos_obj += 1
303303

304-
self.put_arrow_sc(move.from_sq, move.to_sq)
305304
self.beepExtendido(si_nuestra)
306305

307306
self.pgnRefresh(self.game.last_position.is_white)
308307
self.board.set_position(move.position)
308+
self.put_arrow_sc(move.from_sq, move.to_sq)
309309
self.refresh()
310310

311311
def cambiar(self):

bin/Code/Util.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,12 @@ def save_pickle(fich: str, obj) -> bool:
199199

200200
def restore_pickle(fich: str, default=None):
201201
if exist_file(fich):
202-
with open(fich, "rb") as f:
203-
return pickle.loads(f.read())
204-
else:
205-
return default
202+
try:
203+
with open(fich, "rb") as f:
204+
return pickle.loads(f.read())
205+
except:
206+
pass
207+
return default
206208

207209

208210
def urlretrieve(url: str, fich: str) -> bool:

0 commit comments

Comments
 (0)