describing with XML

Programming Topics (Computer Chess) and technical aspects as test techniques, book building, program tuning etc

Moderator: Andres Valverde

describing with XML

Postby Mihail Croitor » 08 Apr 2005, 08:39

at first, excuse me for my pure English.

i propose to describe chess (positions, moves) with XML. its not so programming engines, but at this time we'll need a standart, XML-vocabularies for representing positions and chess games. it will help to make chess books, pages, easy to generate epd and pgn. Description of a game with DTD or XML-schema is so easy. by example, root element - <game> ... </game> contains 2 elements - <header> and <body>. header contain all dates from PGN-header, body can contain whitemoves, blackmoves and comments. so some problems exist with describing positions on - i want to see smallest and usabillitiest cod.
what do you think about this?
Mihail Croitor
 
Posts: 53
Joined: 27 Sep 2004, 10:10
Location: Moldova

Re: describing with XML

Postby Guenther Simon » 08 Apr 2005, 10:10

Hi Mihail,

There are already some good proposals for a XML standard for PGN
since around 1999. The link below gives a link collection of some
of the best known proposals.

Regards,
Guenther

http://palamede.editthispage.com/stories/storyReader$47
User avatar
Guenther Simon
 
Posts: 794
Joined: 26 Sep 2004, 19:49
Location: Regensburg, Germany

Re: describing with XML

Postby Mihail Croitor » 08 Apr 2005, 12:19

Hi Guenther!

Thank you for answer. At linked site i finded some information, but at this time more WWW-pages are inaccesible :-(
at second, i cant find board representation with XML.

Wishes, Mihail.
Mihail Croitor
 
Posts: 53
Joined: 27 Sep 2004, 10:10
Location: Moldova

Re: describing with XML

Postby peterhughes » 09 Apr 2005, 21:30

SharpChess saves it's games in XML format:

Code: Select all
<Game TurnNo="10" WhitePlayer="Human" BlackPlayer="Computer" BoardOrientation="White" Version="2.1.1.0" DifficultyLevel="0" ClockMoves="120" ClockSeconds="3600" MaximumSearchDepth="0" Pondering="0" UseRandomOpeningMoves="0">
  <Move MoveNo="1" Name="Standard" From="e2" To="e4" SecondsElapsed="0" />
  <Move MoveNo="1" Name="Standard" From="b8" To="c6" SecondsElapsed="0" />
  <Move MoveNo="2" Name="Standard" From="g1" To="f3" SecondsElapsed="30" />
  <Move MoveNo="2" Name="Standard" From="e7" To="e6" SecondsElapsed="30" />
  <Move MoveNo="3" Name="Standard" From="b1" To="c3" SecondsElapsed="60" />
  <Move MoveNo="3" Name="Standard" From="d7" To="d5" SecondsElapsed="60" />
  <Move MoveNo="4" Name="Standard" From="e4" To="d5" SecondsElapsed="90" />
  <Move MoveNo="4" Name="Standard" From="e6" To="d5" SecondsElapsed="90" />
  <Move MoveNo="5" Name="Standard" From="d2" To="d4" SecondsElapsed="120" />
  <Move MoveNo="5" Name="Standard" From="g8" To="f6" SecondsElapsed="120" />
  <Move MoveNo="6" Name="Standard" From="f1" To="b5" SecondsElapsed="150" />
  <Move MoveNo="6" Name="Standard" From="c8" To="d7" SecondsElapsed="150" />
  <Move MoveNo="7" Name="CastleKingSide" From="e1" To="g1" SecondsElapsed="180" />
  <Move MoveNo="7" Name="Standard" From="f8" To="b4" SecondsElapsed="180" />
  <Move MoveNo="8" Name="Standard" From="b5" To="c6" SecondsElapsed="210" />
  <Move MoveNo="8" Name="Standard" From="d7" To="c6" SecondsElapsed="210" />
  <Move MoveNo="9" Name="Standard" From="d1" To="e2" SecondsElapsed="240" />
  <Move MoveNo="9" Name="Standard" From="e8" To="f8" SecondsElapsed="211" />
  <Move MoveNo="10" Name="Standard" From="c1" To="e3" SecondsElapsed="241" />
  <Move MoveNo="10" Name="Standard" From="f8" To="g8" SecondsElapsed="212" />
  <Move MoveNo="11" Name="Standard" From="f3" To="e5" SecondsElapsed="242" />
  <Move MoveNo="11" Name="Standard" From="c6" To="e8" SecondsElapsed="214" />
  <Move MoveNo="12" Name="Standard" From="f1" To="e1" SecondsElapsed="243" />
  <Move MoveNo="12" Name="Standard" From="b4" To="d6" SecondsElapsed="215" />
  <Move MoveNo="13" Name="Standard" From="e2" To="d3" SecondsElapsed="243" />
  <Move MoveNo="13" Name="Standard" From="a8" To="c8" SecondsElapsed="217" />
  <Move MoveNo="14" Name="Standard" From="c3" To="b5" SecondsElapsed="245" />
  <Move MoveNo="14" Name="Standard" From="d6" To="e5" SecondsElapsed="220" />
  <Move MoveNo="15" Name="Standard" From="d4" To="e5" SecondsElapsed="246" />
  <Move MoveNo="15" Name="Standard" From="e8" To="b5" SecondsElapsed="220" />
  <Move MoveNo="16" Name="Standard" From="e3" To="d4" SecondsElapsed="249" />
  <Move MoveNo="16" Name="Standard" From="b5" To="d3" SecondsElapsed="231" />
  <Move MoveNo="17" Name="Standard" From="c2" To="c3" SecondsElapsed="252" />
  <Move MoveNo="17" Name="Standard" From="f6" To="h5" SecondsElapsed="255" />
</Game>
peterhughes
 
Posts: 42
Joined: 18 Jan 2005, 23:37


Return to Programming and Technical Discussions

Who is online

Users browsing this forum: No registered users and 9 guests