Teucer's Quiver
Me && .net

Chess and XML ...

Saturday, August 28, 2004 12:44 PM
How about chess with XML...

I am not someone who understands or plays chess but found this very interesting about where XML and Chess meet other!
published on xml.com - Checkmate XML


Feedback

# re: Chess and XML ...

ok I looked through this and also this (http://www.saremba.de/chessgml/why.htm) which is reference. What I find truely hilarious is that NEITHER of the authors seem to understand the actual usage of the pgn format. They are missing things in their specification like alternative lines and commentary (both very important for the game of chess). In other words you need to represent alternate moves and comments WITH the move thats being made, simply representing the header as xml doesn't gain a whole lot in maintaining states throughout the move list.

I personally find the fact that chessgml uses SAN very usefull ... now in order to be able to actually read the moves you need to know the rules of chess ...

example ... Nd3 you need to know to move the Knight to d3 (which means you need to find the Knight on the board, if there are two of them only one will be able to make the move so you need to determine the valid moves for a knight and find which knight might be able to move there)

It would seem to me that this "standard" is a bit too narrow minded, how many similar games are there to chess (Go, Tic Tac Toe, and Checkers to name 2) why not include the definition of the board, pieces, player counts, etc in the header and make a generic standard for a grid based board game ? You could then use simple origin-destination notation to represent the moves and completely remove any requirement of knowing how the pieces move or knowledge of the current board.

You could also easily do alternate lines and commentary by making move recursive

<Move src="a1" dest="c3"piece="a pieceidentifier">
<AlternateMoves>
<Move src="a1" dest="c2" piece="a pieceidentifier">
/* you could follow a complete alternate line through her */
</Move>
/* a piece being put onto the board for something like tic tac toe or go */
<Move src="" dest="c2"piece="a pieceidentifier">
</Move>
</AlternateMoves>
</Move>

Also there is little discussion on the use of such formats with computer engines ... the above format could also be used to represent an opening book for a computer engine (prior to being hashed) this would be very easy to turn into an ECO book of variations ...



8/29/2004 1:21 PM | Greg Young

# re: Chess and XML ...

just to be clear when I say a piece identifier I mean an identifier to a piece which was defined prior in the document (included) 8/29/2004 1:24 PM | Greg Young

# re: Chess and XML ...

I should also add that a Move would contain comments and possibly results / game events which could be defined by the game include. 8/29/2004 1:36 PM | Greg Young

# re: Chess and XML ...

heh too much posting as I correct details, it being that you are building a board, moves should be similar to coordinate notation where they are both numbers seperated (row and col) as opposed to requiring one axis to be letter and the other number. 8/29/2004 1:40 PM | Greg Young

# re: Chess and XML ...

Greg,

Thanks I guess someday I shall talk to you to understand Chess much better! I believe you should be a guru in chess to go to such extents to elaborate your thoughts :)

8/29/2004 3:57 PM | Teucer

# re: Chess and XML ...

I have dabbled with chess a bit (mainly on the engine side) ... this article though gave me some good thoughts and I am currently working on a small implementation, thanks :) 8/30/2004 7:08 AM | Greg Young

# Sandra Thomas

The 9478 Laura Williams blog 4/18/2007 7:59 AM | Christopher Young

# Karen Allen

The 5185 Kimberly Roberts blog 4/29/2007 7:27 AM | Patricia Brown

# Edward Roberts

The 4254 Charles King blog 4/29/2007 8:54 AM | Margaret Robinson

# Brian Moore

The 7834 Laura Williams blog 5/15/2007 5:12 PM | Daniel Davis

# James Jones

The 3047 Edward Hernandez blog 5/16/2007 1:21 AM | Joseph Edwards

# Margaret Turner

The 1528 Joseph Baker blog 5/25/2007 1:06 PM | John Wilson

# Nancy Nelson

The 8661 George Walker blog 5/25/2007 1:53 PM | Margaret Clark

# Hey Here!

Yo!
New here and first post.
I am boy, 21 years old from Ireland
I enjoyed here.

Botijos 10/29/2009 8:41 AM | Beeniashems

Post a comment