Re: [Scidvspc-users] Todo list: +Refactorization of the game-exportation code
Chess Database and Toolkit program
Brought to you by:
stevenaaus
From: Steve A <ste...@gm...> - 2013-09-20 22:56:53
|
I've overhauled a lot of the tcl code, but not much/any of the C++ stuff and am unsure about what would benefit most. But i'm not really keen to change more of "src" than is prudent as mainline Scid seems to have more C++ contributors and applying their patches is easier if the codebases are closer. But having said that, Fulvio is making lots of changes that i do not like to include. Personally, i do not find the game export features very interesting, (but we do have someone changing the latex implementation from 'chess12' to 'skak') I know that we are doing some San / UCI conversion in tcl which could be faster handled in C++. OTTOMH 'proc formatPv' and 'proc sc_move_add' in uci.tcl Steve. On Fri, Sep 20, 2013 at 4:31 PM, YL <hpq...@16...> wrote: > > The game-exportation part of the program may need refactoring so that code > for exporting games in new formats can be easily added. The existing design > simply mixes too much code for different exporting formats in > Game::WriteMoveList() and Game::WritePGN(), and addition of a new format > will only mix even more. > > My idea is to put all these exportation stuff in a separate class Export{} > and have the Game{} class contains it. > > If I had time I would work on this, however this is not the case (and my > programming experience is literally meagre and Tcl/Tk is completely new to > me, too). So this may be put on the todo list. > > > > |