def pgn_translated(self): dConv = TrListas.dConv() li = [] for c in self.pgnBase: if c in dConv: c = dConv[c] li.append(c) return "".join(li)
def pgn_translated(self, from_sq, to_sq, promotion=""): d_conv = TrListas.dConv() li = [] cpgn = self.pgn(from_sq, to_sq, promotion) if not cpgn: return "" for c in cpgn: if c in d_conv: c = d_conv[c] li.append(c) return "".join(li)