Search found 238 matches

by mathmoi
Mon Oct 15, 2012 12:35 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Chess game data structure in C
Replies: 12
Views: 2774

Re: Chess game data structure in C

I'm currently working on a PGN parser in C, a language I don't have much experience in. The reason I'm writing it in C is because I might want to open source it in the future if I can get proud enough of my code and it will be more useful to others if it can be integrated in C programs than if it's...
by mathmoi
Mon Oct 15, 2012 2:34 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Chess game data structure in C
Replies: 12
Views: 2774

Re: Chess game data structure in C

I would treat all PGN tags the same way and so not have special storage treatment for the basic seven tags. The reason I did it this way is to speed things up when we're looking up who are the players for example. If the information is included in the linked list you would need to scan it. Of cours...
by mathmoi
Mon Oct 15, 2012 1:43 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Chess game data structure in C
Replies: 12
Views: 2774

Re: Chess game data structure in C

I would treat all PGN tags the same way and so not have special storage treatment for the basic seven tags. The reason I did it this way is to speed things up when we're looking up who are the players for example. If the information is included in the linked list you would need to scan it. Of cours...
by mathmoi
Mon Oct 15, 2012 12:43 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Chess game data structure in C
Replies: 12
Views: 2774

Chess game data structure in C

Hi, I'm currently working on a PGN parser in C, a language I don't have much experience in. The reason I'm writing it in C is because I might want to open source it in the future if I can get proud enough of my code and it will be more useful to others if it can be integrated in C programs than if i...
by mathmoi
Fri Aug 05, 2011 12:13 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: PGN Parser Interface in C
Replies: 9
Views: 2977

Re: PGN Parser Interface in C

The representation would be most useful if the different information 'channels' (moves, comments, variations) are well separated, so that the user does not need to disentangle them when he wants to follow the game. The game would most conveniently be represented by a list of moves (given as pairs o...
by mathmoi
Fri Aug 05, 2011 1:23 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: PGN Parser Interface in C
Replies: 9
Views: 2977

PGN Parser Interface in C

Hi, Just for fun I'm about to write a PGN parser in C. The reason I do want to do that is that I never wrote a parser from scratch. For example, the PGN parser in my engine is written with boost.spirit a parser framework that abuse the C++ templates (and operator overloading) system in order to crea...
by mathmoi
Fri May 13, 2011 12:29 pm
Forum: Computer Chess Club: General Topics
Topic: Install native Linux engines in Arena running under Wine.
Replies: 66
Views: 4944

Install native Linux engines in Arena running under Wine.

Hi, I was wondering if there is anyway to use a native linux engine with Arana running under wine? At the moment I get an "Invalid command line..." error when I try to start the engine. That in fact did not surprised me since I simply entered the path to to linux executable in the engine management ...
by mathmoi
Tue May 03, 2011 7:36 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Tool for automatic black-box parameter optimization released
Replies: 57
Views: 12240

Re: Tool for automatic black-box parameter optimization rele

No, it's not.

Fabien removed it from it's website, but he stated in another message in this very thread that he is fine with other persons distributing it.