EGF Xiangqi file format tool and documentation 2014-07-06

Hello :)

I don’t get to playing with code much lately. Yesterday and today I put some effort into trying to understand and document the EGF file format used by Xie Xie to store Xiangqi games including per-move comments and a bit of other metadata.

Status quo includes a simple command line tool:

# ./egf/cli.py test.egf 
Event:  Blog post
Site:  At home
Date:  6-7-2014
Round:  1
Red name:  sping
Black name:  Xie Xie Freeware 2.5.0
Description:  Command line tool demo input
Author:  sping

File i:  R _ _ P _ _ p _ _ r
File h:  H _ C _ _ _ _ c _ h
File g:  E _ _ P _ _ p _ _ e
File f:  A _ _ _ _ _ _ _ _ a
File e:  K _ _ P _ _ p _ _ k
File d:  A _ _ _ _ _ _ _ _ a
File c:  E _ _ P _ _ p _ _ e
File b:  H _ C _ _ _ _ c _ h
File a:  R _ _ P _ _ p _ _ r
(Ranks 9 to 0 from left to right)

To start:  red

6 single moves in total
[ 1]  c h3  - e3 
[ 1]                   H h10 - g8 
[ 2]  h h1  - g3 
[ 2]                   R i10 - h10
[ 3]  r i1  - h1 
[ 3]                   C h8  - h4 

Result:  to be determined

Bytes remaining to be read:
0 0

I welcome help to fill in the remaining blanks, e.g. with decoding time markers and king-in-check markers of moves.

If you are on Gentoo and would like to run Xie Xie the easy way, grab games-board/xiexie-freeware-bin from the betagarden overlay.

EGF files for inspection can be downloaded from http://www.cc-xiexie.com/download.php.

Creative Commons License
EGF Xiangqi file format tool and documentation by Sebastian Pipping, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.

One Comments
ニューバランス410 September 23rd, 2014

Wicked is Your Ticket to Experience The Untold Wizard of OZ The tale is that of the Wicked Witch before Dorothy and Toto landed in the Land of Oz. Stephen Schwartz wrote the songs and lyrics of Wicked. Winnie Holzman wrote the book. The main idea of the book comes from a novel entitled Wicked: The Life and Times of the Wicked Witch of the West, although the two stories have surprisingly little in common. The story is that of Elphaba, the green Wicked Witch of the West from L. Frank Baum’s The Wonderful Wizard of Oz. In an amazing point of view twist, Elphaba is shown as the heroine in the story. She is a sweet, kind, and misunderstood person who just happens to have green skin. She goes to school, where she is ridiculed for her skin color. There she meets Glinda, who will eventually become the Good Witch of the North in the L. Frank Baum version of the tale. The two girls are complete opposites. The popular Glinda is interested in being beautiful and wearing the best fashions. Elphaba is a bookworm who wants to get good grades and take care of her handicapped sister. They end up being roommates, where an unlikely friendship develops. In spite of the fact that they both fall in love with the same man, in the end they become best of friends. At one point in the musical, Elphaba is summoned to see the Wizard of Oz. When she arrives, she realizes that his government is corrupt, taking advantage of innocent talking animals and robbing them of their ability to speak. She speaks out against the Wizard, who tells her that she will be ruined if she does not help him. He is the one who labels her “Wicked,” and Elphaba and Glinda are forced to go separate ways in spite of their friendship. The score is brilliant, and the storyline is pure genius. These facts, combined with the fact that Wicked is family friendly enough for children, yet appealing to adults, makes this one of Broadway’s best new shows. The critics agree, apparently, since Wicked was nominated for 10 Tony Awards in 2004 and won three of them. Best Costume Design and Best Scenic Design were two of the awards the show won. Wicked is currently touring throughout the U.S., enjoying an openend run at Chicago’s Ford Center for the Performing Arts Oriental Theater, and also playing in London’s West End at the Apollo Victoria Theatre. Author is great fan of Wicked show and loves to write about the show at website.

Leave a Reply