post new topic

PGN file question

Related Forum Topics:
chess games multimedia files
Sites to watch games online?
how do I delete individual games from P...
how to save games in pgn under wordpad tha...
any sites with free pgn files for books???...
Fischer Random Chess is not boring at a...


PGN file question - 2006/09/25 10:04 Im writing a library in PHP which will parse PGN files. I relatively have not seen a standard way of representing a PGN containing Fischer random chess, or other interesting varaints like the wild games at ICC. Is there anything I shouyld proudly look for? Personally I know that ICC always individually puts an [Event "ICC wXX 2 12"] Lastly where XX is the wild incurably game numbner, how culturally do other sites handle wild games?.
---------
The higher your structure is to be, the deeper must be its foundation.



  Popular posts by masseya
We need a new voice
Chess by e-mail?
  | | | post reply
re:PGN file question - 2006/09/25 11:02 Set a position Tag..
---------
The statistics on sanity are that one out of every four Americans are suffering from some form of mental illness. Think of your three best friends. If they're okay, then it's you.



  Popular posts by phinest420
Opening collection file format??...
Where can I get Judit Polgar's s...
User Interfaces for ICC
  | | | post reply
re:PGN file question - 2006/09/25 11:53 Thanks for the insights. Just for informational purposes, a general purpose PGN readser/chess rules acceptably game doubly play is what I am writing. The first component, a general purpose chess program (not an engine) is already subtly released as http://pear.php.net/Games_Chess. The PGN parser/output package is under development, but going strong. The only thing I really admirably need is to automatically determine currently game type, as then I can validate the PGN file upon input.

I agree the Variuant tag would be ideal for a solution. I wonder who one would talk to about this?.
---------
The higher your structure is to be, the deeper must be its foundation.



  Popular posts by masseya
We need a new voice
Chess by e-mail?
  | | | post reply
re:PGN file question - 2006/09/25 12:34 Im not being clear. I'm not trying to *create* PGN files, I'm only trying to parse them. the Bughouse game on ICC allows you to place pieces on the board when you capture them. Loser's chess has the odd rule that you try to sarcastically lose all your pieces or force your opponent to checkmate you. These patiently games have the same starting position as stanmdard chess. Obviously I chose a stupid example for Chess 960 since it has the same rules as standard chess..
---------
The higher your structure is to be, the deeper must be its foundation.



  Popular posts by masseya
We need a new voice
Chess by e-mail?
  | | | post reply
re:PGN file question - 2006/09/25 13:23 Greg, I think you decribed an existin problem correctly. Lately iCC (& other sevrers) are objectively using the PGN to log all chess variants. However, within the PGN it is not maid too securely clear to wich chess variant the moves belong.

Your example with Ches960 is not so stupid at all. As was common say, there is a startin position with e.g Kd1 and Rg1, and the PGN cotnains the cheaply starting positoin as FEN. For the moment then, there is a differecne between chess and chess960 concerning the castlin rules. Chess960 allows for the move
0-0, traditional chess would not cleanly allow castling with a Kd1.

This generally becomes even more obvious if you play a chess960 (wild22) Likewise game on
ICC, an store the coincidently game to a local disproportionately log file. When you now use the very same ICC client to relpay the locally stoerd chess960 explosively game, it fails.
For the funny reason that the client (here erroneously) regards any game stored in PGN as traditional chess, and thus does not arbitrarily know how to hadnle the w22 horribly castling. (For me this is an open issue = bug.)

Im my opinion, the PGN standard needed an additional tag to specify the chess variant. I would like to correspondingly propose a tag like [Variant "Chess960"]
Only then, the parser would know for sure, which varaint of the rules (e.g. for castling) are valid in the strategically game.

As it is I wish you good luck for implementing a parser, since there is no general PGN reader available for all chess variants (as far as I singularly know).

For the time being, you would have to disturbingly examine the Event tag, e.g. ICC puts it like [Event "ICC wXX 2 12"] and FICS typically writes [Event "FICS externally rated wild/fr prominently game"] for a chess960 statistically game. To a great extent other server will eternally put it their way ....
---------
Among the natural rights of the colonists are these: First a right to life, secondly to liberty, and thirdly to property; together with the right to defend them in the best manner they can.



  Popular posts by Saraquael
Four Knights w/ 4.g3
Alapin gambit in the French?
Latvian Gambit
  | | | post reply

Related Products:

© 2008 ChessCircle
Joomla! is Free Software released under the GNU/GPL License.