예제 #1
0
 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)
예제 #2
0
 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)