User discussion of SCID schreef op 11/26/2014 9:43 AM: > Honestly I would have preferred a single file /etc/chessengines ... The problem with this is that, although potentially easier for GUIs, it becomes far harder for engines: they would all need some non-standard install script that would edit the file. Placing files during make-install and removing them again on uninstall is standard in any packaging technology. That makes it quite trivial to do for engine developers (or even packagers, as some engines are no longer developed). And the success of the system is very much dependent on its embracement by engine authors too. So as usual the GUI developers have to do the hard work... > However, is XBoard code portable? Well, XBoard is written in C, not C++. And I hardly know anything about C++. I put the C code that XBoard now uses in the public domain, at http://www.talkchess.com/forum/viewtopic.php?t=53674&topic_view=&start=15 This code assumes it can call a GUI-specific function InstallNewEngine() with as arguments the engine command, engine directory pathname (possibly an empty string if the engine doesn't care), a list of variants that the engine plays (which in the case of SCID would likely always be "chess", and could be ignored) and the protocol name ("uci" or "xboard"), all as (char*). That routine would have to do what normally would happen when the user adds an engine to the list of selectable engines. In XBoard this would just add a line to a text string that contains all the 'registered' engines, like "fruit -fUCI".
Regards, H.G. > If you provide a a c++ interface like this: > > class AutomagicalEngine { > public: > static std::vector<AutomagicalEngine> getEngines(); > static std::string getTimeStamp(); //To check for changes > std::string getName(); > std::string getExecutable(); > std::string getDir(); > std::string getProtocol(); > }; > > > it will be trivial for other c++ programs to support the protocol. > Bye, > Fulvio > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk > _______________________________________________ > Scid-users mailing list > Scid-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/scid-users > ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ Scid-users mailing list Scid-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/scid-users