C/CIF help - Rybka Aquarium + Chess Assistant

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

User avatar
gcramer
Posts: 40
Joined: Mon Oct 28, 2013 11:21 pm
Location: Bad Homburg, Germany

C/CIF help - Rybka Aquarium + Chess Assistant

Post by gcramer »

For the completion of the C/CIF library I need some help:

1. Rybka Aquarium knows move markers like coloured arrows, rectangles, filled rectangles, circles, and some more additional markers (also called graphical annotation, see here for screenshots). Who can send me a PGN export file of Rybka Aquarium with such markers?

2. Chess Assistant also knows move markers like coloured rectangles. Who can send me a PGN export file of Chess Assistant with markers?

I need this information for full support of PGN. Currently I know only the exported PGN formats of ChessBase, Scid, and Scidb.
Dann Corbit
Posts: 12537
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: C/CIF help - Rybka Aquarium + Chess Assistant

Post by Dann Corbit »

Are you looking for stuff like this:

[White "Kramnik"]
[Black "Aronian"]
[WhiteElo "2801"]
[BlackElo "2820"]
[Result "0-1"]
[GameID "401"]
[UniqID "847829"]
[WhiteClock "0:48:32"]
[BlackClock "1:37:47"]
[Stamp "674"]
[LastMoves "41.Ng6 Bd6 -5.95"]

1.Nf3 d5 2.d4 Nf6 3.c4 c6 4.Nc3 e6 5.Bg5 h6 6.Bxf6 Qxf6 7.e3
Nd7 8.Bd3 dxc4 9.Bxc4 g6 10.O-O Bg7 11.Re1 O-O 12.e4 e5 13.d5
Rd8 14.Re3 ( 14.h3 Nb6 15.Bb3 Bd7 16.a4 a5 17.Re3 Be8 18.Qe2
Nd7 19.Nd2 Nc5 20.Ba2 Qe7 21.Rf3 Kh7 22.Rd1 f6 {... 0-1, Cmilyte - Mongontuul, China, 2011}
) b5 15.dxc6 bxc4 16.Nd5 ( 16.cxd7 {!?} Rxd7 17.Qe2 {Houdini Aquarium (0:00:13)}
{<font color=red>-0.05|d22</font>} {$11} ) Qe6 {!N} 17.cxd7
Rxd7 18.Qa4 Bb7 19.Qxc4 ( 19.Rc1 {!?} Bxd5 20.exd5 Qxd5 21.Qxc4
Re8 22.Re2 e4 23.Nd2 Bxb2 24.Qxd5 Rxd5 25.Nxe4 Red8 26.Rce1 Bg7
27.g4 f5 28.gxf5 gxf5 29.Ng3 f4 30.Ne4 f3 31.Rc2 Rd1 32.Rc1 Rxe1+
33.Rxe1 Kf7 34.Rc1 {Houdini Aquarium (0:00:43)} {<font color=red>-0.49|d21</font>}
{$15} ) Bxd5 ( 19...Rc8 {!?} 20.Qb3 Bxd5 21.exd5 Qxd5 22.g3
Qxb3 23.axb3 f6 24.Kg2 Kf7 25.Ra4 Bf8 26.Rc3 Rb8 27.Rac4 Be7
28.Re3 a5 29.Rec3 g5 30.g4 Rd1 31.Ra4 Bb4 32.Rc7+ Kg6 {Houdini Aquarium (0:01:38)}
{<font color=red>-0.70|d22</font>} {$15} ) 20.exd5 Qxd5 21.Qxd5
Rxd5 22.Rae1 Re8 23.g4 Kh7 24.g5 hxg5 25.Nxg5+ Kg8 26.f4 {?!}
( 26.Ra3 Re7 27.Rc3 Bh6 28.Ne4 Kg7 29.Rc5 Rd3 30.Rc2 f5 31.Nc5
Rd8 32.Kg2 e4 33.h4 Rd4 34.Nb3 Ra4 35.a3 e3 36.Kh3 Rae4 37.f3
Ra4 38.Nc5 Rd4 39.b4 Re8 {Houdini Aquarium (0:05:38)} {<font color=red>-0.39|d24</font>}
{$15} ) Rb8 27.fxe5 Rxb2 28.Nf3 Rxa2 29.e6 fxe6 30.Rxe6 Rf5
31.Nh4 Rf4 32.R6e4 Rf6 33.Rg4 Kf7 34.Rc1 Bh6 35.Rc7+ Ke8 36.Re4+
Kd8 37.Rh7 Bf8 38.Rd4+ Kc8 39.Rc4+ Kb8 40.Rd7 {?} ( 40.Rc1 a5
{Houdini Aquarium (0:00:03)} {<font color=red>-1.66|d22</font>}
{$17} ) g5 41.Ng6 Bd6 42.Z0 ( 42.Rh7 Rxg6 43.Rc1 a5 44.h3
g4 45.hxg4 Rxg4+ 46.Kh1 Rb4 47.Re1 Rb7 48.Rh6 Bf4 49.Rh4 Bg3
50.Rh8+ Ka7 51.Rg1 Be5 52.Rh5 a4 53.Rd1 Bf4 54.Rh4 Bg5 55.Rh5
Be3 56.Rh3 Bf4 57.Rh5 a3 58.Kg1 Rbb2 {Houdini Aquarium (0:00:40)}
{<font color=red>-5.95|d19</font>} {$19} ) 0-1
Dann Corbit
Posts: 12537
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: C/CIF help - Rybka Aquarium + Chess Assistant

Post by Dann Corbit »

Dann Corbit wrote:Are you looking for stuff like this:

[White "Kramnik"]
[Black "Aronian"]
[WhiteElo "2801"]
[BlackElo "2820"]
[Result "0-1"]
[GameID "401"]
[UniqID "847829"]
[WhiteClock "0:48:32"]
[BlackClock "1:37:47"]
[Stamp "674"]
[LastMoves "41.Ng6 Bd6 -5.95"]

1.Nf3 d5 2.d4 Nf6 3.c4 c6 4.Nc3 e6 5.Bg5 h6 6.Bxf6 Qxf6 7.e3
Nd7 8.Bd3 dxc4 9.Bxc4 g6 10.O-O Bg7 11.Re1 O-O 12.e4 e5 13.d5
Rd8 14.Re3 ( 14.h3 Nb6 15.Bb3 Bd7 16.a4 a5 17.Re3 Be8 18.Qe2
Nd7 19.Nd2 Nc5 20.Ba2 Qe7 21.Rf3 Kh7 22.Rd1 f6 {... 0-1, Cmilyte - Mongontuul, China, 2011}
) b5 15.dxc6 bxc4 16.Nd5 ( 16.cxd7 {!?} Rxd7 17.Qe2 {Houdini Aquarium (0:00:13)}
{<font color=red>-0.05|d22</font>} {$11} ) Qe6 {!N} 17.cxd7
Rxd7 18.Qa4 Bb7 19.Qxc4 ( 19.Rc1 {!?} Bxd5 20.exd5 Qxd5 21.Qxc4
Re8 22.Re2 e4 23.Nd2 Bxb2 24.Qxd5 Rxd5 25.Nxe4 Red8 26.Rce1 Bg7
27.g4 f5 28.gxf5 gxf5 29.Ng3 f4 30.Ne4 f3 31.Rc2 Rd1 32.Rc1 Rxe1+
33.Rxe1 Kf7 34.Rc1 {Houdini Aquarium (0:00:43)} {<font color=red>-0.49|d21</font>}
{$15} ) Bxd5 ( 19...Rc8 {!?} 20.Qb3 Bxd5 21.exd5 Qxd5 22.g3
Qxb3 23.axb3 f6 24.Kg2 Kf7 25.Ra4 Bf8 26.Rc3 Rb8 27.Rac4 Be7
28.Re3 a5 29.Rec3 g5 30.g4 Rd1 31.Ra4 Bb4 32.Rc7+ Kg6 {Houdini Aquarium (0:01:38)}
{<font color=red>-0.70|d22</font>} {$15} ) 20.exd5 Qxd5 21.Qxd5
Rxd5 22.Rae1 Re8 23.g4 Kh7 24.g5 hxg5 25.Nxg5+ Kg8 26.f4 {?!}
( 26.Ra3 Re7 27.Rc3 Bh6 28.Ne4 Kg7 29.Rc5 Rd3 30.Rc2 f5 31.Nc5
Rd8 32.Kg2 e4 33.h4 Rd4 34.Nb3 Ra4 35.a3 e3 36.Kh3 Rae4 37.f3
Ra4 38.Nc5 Rd4 39.b4 Re8 {Houdini Aquarium (0:05:38)} {<font color=red>-0.39|d24</font>}
{$15} ) Rb8 27.fxe5 Rxb2 28.Nf3 Rxa2 29.e6 fxe6 30.Rxe6 Rf5
31.Nh4 Rf4 32.R6e4 Rf6 33.Rg4 Kf7 34.Rc1 Bh6 35.Rc7+ Ke8 36.Re4+
Kd8 37.Rh7 Bf8 38.Rd4+ Kc8 39.Rc4+ Kb8 40.Rd7 {?} ( 40.Rc1 a5
{Houdini Aquarium (0:00:03)} {<font color=red>-1.66|d22</font>}
{$17} ) g5 41.Ng6 Bd6 42.Z0 ( 42.Rh7 Rxg6 43.Rc1 a5 44.h3
g4 45.hxg4 Rxg4+ 46.Kh1 Rb4 47.Re1 Rb7 48.Rh6 Bf4 49.Rh4 Bg3
50.Rh8+ Ka7 51.Rg1 Be5 52.Rh5 a4 53.Rd1 Bf4 54.Rh4 Bg5 55.Rh5
Be3 56.Rh3 Bf4 57.Rh5 a3 58.Kg1 Rbb2 {Houdini Aquarium (0:00:40)}
{<font color=red>-5.95|d19</font>} {$19} ) 0-1
Bigger bunch of stuff like that:
https://www.dropbox.com/s/hpz608rpu7h97 ... ff.7z?dl=0
Dann Corbit
Posts: 12537
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: C/CIF help - Rybka Aquarium + Chess Assistant

Post by Dann Corbit »

Dann Corbit wrote:
Dann Corbit wrote:Are you looking for stuff like this:

[White "Kramnik"]
[Black "Aronian"]
[WhiteElo "2801"]
[BlackElo "2820"]
[Result "0-1"]
[GameID "401"]
[UniqID "847829"]
[WhiteClock "0:48:32"]
[BlackClock "1:37:47"]
[Stamp "674"]
[LastMoves "41.Ng6 Bd6 -5.95"]

1.Nf3 d5 2.d4 Nf6 3.c4 c6 4.Nc3 e6 5.Bg5 h6 6.Bxf6 Qxf6 7.e3
Nd7 8.Bd3 dxc4 9.Bxc4 g6 10.O-O Bg7 11.Re1 O-O 12.e4 e5 13.d5
Rd8 14.Re3 ( 14.h3 Nb6 15.Bb3 Bd7 16.a4 a5 17.Re3 Be8 18.Qe2
Nd7 19.Nd2 Nc5 20.Ba2 Qe7 21.Rf3 Kh7 22.Rd1 f6 {... 0-1, Cmilyte - Mongontuul, China, 2011}
) b5 15.dxc6 bxc4 16.Nd5 ( 16.cxd7 {!?} Rxd7 17.Qe2 {Houdini Aquarium (0:00:13)}
{<font color=red>-0.05|d22</font>} {$11} ) Qe6 {!N} 17.cxd7
Rxd7 18.Qa4 Bb7 19.Qxc4 ( 19.Rc1 {!?} Bxd5 20.exd5 Qxd5 21.Qxc4
Re8 22.Re2 e4 23.Nd2 Bxb2 24.Qxd5 Rxd5 25.Nxe4 Red8 26.Rce1 Bg7
27.g4 f5 28.gxf5 gxf5 29.Ng3 f4 30.Ne4 f3 31.Rc2 Rd1 32.Rc1 Rxe1+
33.Rxe1 Kf7 34.Rc1 {Houdini Aquarium (0:00:43)} {<font color=red>-0.49|d21</font>}
{$15} ) Bxd5 ( 19...Rc8 {!?} 20.Qb3 Bxd5 21.exd5 Qxd5 22.g3
Qxb3 23.axb3 f6 24.Kg2 Kf7 25.Ra4 Bf8 26.Rc3 Rb8 27.Rac4 Be7
28.Re3 a5 29.Rec3 g5 30.g4 Rd1 31.Ra4 Bb4 32.Rc7+ Kg6 {Houdini Aquarium (0:01:38)}
{<font color=red>-0.70|d22</font>} {$15} ) 20.exd5 Qxd5 21.Qxd5
Rxd5 22.Rae1 Re8 23.g4 Kh7 24.g5 hxg5 25.Nxg5+ Kg8 26.f4 {?!}
( 26.Ra3 Re7 27.Rc3 Bh6 28.Ne4 Kg7 29.Rc5 Rd3 30.Rc2 f5 31.Nc5
Rd8 32.Kg2 e4 33.h4 Rd4 34.Nb3 Ra4 35.a3 e3 36.Kh3 Rae4 37.f3
Ra4 38.Nc5 Rd4 39.b4 Re8 {Houdini Aquarium (0:05:38)} {<font color=red>-0.39|d24</font>}
{$15} ) Rb8 27.fxe5 Rxb2 28.Nf3 Rxa2 29.e6 fxe6 30.Rxe6 Rf5
31.Nh4 Rf4 32.R6e4 Rf6 33.Rg4 Kf7 34.Rc1 Bh6 35.Rc7+ Ke8 36.Re4+
Kd8 37.Rh7 Bf8 38.Rd4+ Kc8 39.Rc4+ Kb8 40.Rd7 {?} ( 40.Rc1 a5
{Houdini Aquarium (0:00:03)} {<font color=red>-1.66|d22</font>}
{$17} ) g5 41.Ng6 Bd6 42.Z0 ( 42.Rh7 Rxg6 43.Rc1 a5 44.h3
g4 45.hxg4 Rxg4+ 46.Kh1 Rb4 47.Re1 Rb7 48.Rh6 Bf4 49.Rh4 Bg3
50.Rh8+ Ka7 51.Rg1 Be5 52.Rh5 a4 53.Rd1 Bf4 54.Rh4 Bg5 55.Rh5
Be3 56.Rh3 Bf4 57.Rh5 a3 58.Kg1 Rbb2 {Houdini Aquarium (0:00:40)}
{<font color=red>-5.95|d19</font>} {$19} ) 0-1
Bigger bunch of stuff like that:
https://www.dropbox.com/s/hpz608rpu7h97 ... ff.7z?dl=0
The " 42.Z0 " from the above game is a real head-scratcher for me.
Ferdy
Posts: 4833
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: C/CIF help - Rybka Aquarium + Chess Assistant

Post by Ferdy »

gcramer wrote:For the completion of the C/CIF library I need some help:

1. Rybka Aquarium knows move markers like coloured arrows, rectangles, filled rectangles, circles, and some more additional markers (also called graphical annotation, see here for screenshots). Who can send me a PGN export file of Rybka Aquarium with such markers?

2. Chess Assistant also knows move markers like coloured rectangles. Who can send me a PGN export file of Chess Assistant with markers?

I need this information for full support of PGN. Currently I know only the exported PGN formats of ChessBase, Scid, and Scidb.
Check if this is what you need. I suggest you better ask the chessok directly. They might be planing to revise or make some improvements.

Image


Image


Image


Image


The pgn file.

Code: Select all

[Event "Game"]
[Site "Internet"]
[Date "1999.??.??"]
[Round "1"]
[White "Kasparov Garry (RUS)"]
[Black "The World"]
[Result "1-0"]
[Annotator ""]
[BlackElo "0"]
[Classes "0"]
[ECO "B52"]
[GameID "0"]
[Remark "X"]
[Source ""]
[WhiteElo "2851"]

1. e4 c5 2. Nf3 d6 3. Bb5+ Bd7 4. Bxd7+ Qxd7 5. c4 {[%t bMrk] X SNAd402} 5...
Nc6 6. Nc3 Nf6 7. O-O g6 8. d4 cxd4 9. Nxd4 Bg7 10. Nde2 Qe6 11. Nd5 Qxe4 12.
Nc7+ Kd7 13. Nxa8 Qxc4 14. Nb6+ axb6 15. Nc3 Ra8 16. a4 Ne4 {[%t bMrk] X
SNAc302 SNIa402} 17. Nxe4 Qxe4 18. Qb3 {[%t bMrk] X SNAe301 SNAb602 SNAf702
ANCb4b62C ANCc4f72C} 18... f5 19. Bg5 Qb4 20. Qf7 Be5 21. h3 Rxa4 22. Rxa4
Qxa4 23. Qxh7 Bxb2 24. Qxg6 {[%t bMrk] X ANDh3h82C} 24... Qe4 25. Qf7 Bd4 26.
Qb3 {[%t bMrk] X RECf7h7 RECf6h6 RECh6h6 RECg6g6 RECf6f6 RECf7f7 RECg7g7
RECh7h7 REAe3g2} 26... f4 27. Qf7 Be5 {[%t bMrk] X ANAb6b12C} 28. h4 b5 29. h5
Qc4 30. Qf5+ Qe6 {[%t bMrk] X ANCd7g82E ANCe6h82E SNDf300} 31. Qxe6+ Kxe6 32.
g3 fxg3 33. fxg3 {[%t bMrk] X SNCb100 ANDc6a52E ANDa5c42E ANDc4a32E} 33... b4
34. Bf4 Bd4+ 35. Kh1 b3 36. g4 Kd5 37. g5 e6 38. h6 Ne7 39. Rd1 e5 40. Be3 Kc4
41. Bxd4 exd4 42. Kg2 b2 43. Kf3 Kc3 44. h7 Ng6 45. Ke4 Kc2 46. Rh1 d3 47. Kf5
b1=Q 48. Rxb1 Kxb1 49. Kxg6 d2 50. h8=Q d1=Q 51. Qh7 b5 52. Kf6+ Kb2 53. Qh2+
Ka1 54. Qf4 b4 55. Qxb4 Qf3+ 56. Kg7 d5 57. Qd4+ Kb1 58. g6 Qe4 59. Qg1+ Kb2
60. Qf2+ Kc1 61. Kf6 d4 62. g7 1-0
[pgn]
[Event "Game"]
[Site "Internet"]
[Date "1999.??.??"]
[Round "1"]
[White "Kasparov Garry (RUS)"]
[Black "The World"]
[Result "1-0"]
[Annotator ""]
[BlackElo "0"]
[Classes "0"]
[ECO "B52"]
[GameID "0"]
[Remark "X"]
[Source ""]
[WhiteElo "2851"]

1. e4 c5 2. Nf3 d6 3. Bb5+ Bd7 4. Bxd7+ Qxd7 5. c4 {[%t bMrk] X SNAd402} 5...
Nc6 6. Nc3 Nf6 7. O-O g6 8. d4 cxd4 9. Nxd4 Bg7 10. Nde2 Qe6 11. Nd5 Qxe4 12.
Nc7+ Kd7 13. Nxa8 Qxc4 14. Nb6+ axb6 15. Nc3 Ra8 16. a4 Ne4 {[%t bMrk] X
SNAc302 SNIa402} 17. Nxe4 Qxe4 18. Qb3 {[%t bMrk] X SNAe301 SNAb602 SNAf702
ANCb4b62C ANCc4f72C} 18... f5 19. Bg5 Qb4 20. Qf7 Be5 21. h3 Rxa4 22. Rxa4
Qxa4 23. Qxh7 Bxb2 24. Qxg6 {[%t bMrk] X ANDh3h82C} 24... Qe4 25. Qf7 Bd4 26.
Qb3 {[%t bMrk] X RECf7h7 RECf6h6 RECh6h6 RECg6g6 RECf6f6 RECf7f7 RECg7g7
RECh7h7 REAe3g2} 26... f4 27. Qf7 Be5 {[%t bMrk] X ANAb6b12C} 28. h4 b5 29. h5
Qc4 30. Qf5+ Qe6 {[%t bMrk] X ANCd7g82E ANCe6h82E SNDf300} 31. Qxe6+ Kxe6 32.
g3 fxg3 33. fxg3 {[%t bMrk] X SNCb100 ANDc6a52E ANDa5c42E ANDc4a32E} 33... b4
34. Bf4 Bd4+ 35. Kh1 b3 36. g4 Kd5 37. g5 e6 38. h6 Ne7 39. Rd1 e5 40. Be3 Kc4
41. Bxd4 exd4 42. Kg2 b2 43. Kf3 Kc3 44. h7 Ng6 45. Ke4 Kc2 46. Rh1 d3 47. Kf5
b1=Q 48. Rxb1 Kxb1 49. Kxg6 d2 50. h8=Q d1=Q 51. Qh7 b5 52. Kf6+ Kb2 53. Qh2+
Ka1 54. Qf4 b4 55. Qxb4 Qf3+ 56. Kg7 d5 57. Qd4+ Kb1 58. g6 Qe4 59. Qg1+ Kb2
60. Qf2+ Kc1 61. Kf6 d4 62. g7 1-0
[/pgn]
User avatar
gcramer
Posts: 40
Joined: Mon Oct 28, 2013 11:21 pm
Location: Bad Homburg, Germany

Re: C/CIF help - Rybka Aquarium + Chess Assistant

Post by gcramer »

Hi Dann,

many thanks for your support, that's what I'm looking for, I've downloaded your file from dropbox. Is it right that the exports are done with Rybka Aquarium?

Code: Select all

    {$11}
Very interesting, Rybka is ignoring the PGN standard. So I have to consider these quirks.

Code: Select all

    {<font color=red>-0.49|d21</font>} 
Even non-standard, no other application than Rybka can recognize this. Nevertheless C/CIF now will detect this.

Code: Select all

    42.Z0
I found it, this is denoting a null move ("Z0" is here used for null). Null move means: the side to move is changing without doing a move, this is useful for analysis, in this way the null move is a placeholder for "any" move.

Unfortunately none of the games are containing markers (see ChessOK). Probably you have also some games with such markers?
User avatar
gcramer
Posts: 40
Joined: Mon Oct 28, 2013 11:21 pm
Location: Bad Homburg, Germany

Re: C/CIF help - Rybka Aquarium + Chess Assistant

Post by gcramer »

Hi Ferdinand,

thanks for the examples, I guess that you have exported with Chess Assistant? A quite complex decoding for arrows and markers, considering the fact that application Scid has shown how to export such stuff inside PGN, so that other application are able to read or to ignore (eliminate) such extensions when importing. I'll try to decode this stuff.
I suggest you better ask the chessok directly. They might be planing to revise or make some improvements.
Probably I will do this, but it is always difficult to contact commercial companies, normally they are only interested in money.
Ferdy
Posts: 4833
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: C/CIF help - Rybka Aquarium + Chess Assistant

Post by Ferdy »

gcramer wrote:Hi Ferdinand,

thanks for the examples, I guess that you have exported with Chess Assistant? A quite complex decoding for arrows and markers, considering the fact that application Scid has shown how to export such stuff inside PGN, so that other application are able to read or to ignore (eliminate) such extensions when importing. I'll try to decode this stuff.
I suggest you better ask the chessok directly. They might be planing to revise or make some improvements.
Probably I will do this, but it is always difficult to contact commercial companies, normally they are only interested in money.
I am using Aquarium 2014.

I am not really sure but I see some patterns here,

{[%t bMrk] X SNAd402}

All starts with "[%t bMrk] X"
Followed by SNA<square><shape>
shape X = 02, Circle = 01, Square = 00

There can be multiple occurence of "SNA<square><shape>"

Move arrow is
ANCd7g82E
d7 = start, g8 = end

I will have a deeper look into this later.
User avatar
gcramer
Posts: 40
Joined: Mon Oct 28, 2013 11:21 pm
Location: Bad Homburg, Germany

Re: C/CIF help - Rybka Aquarium + Chess Assistant

Post by gcramer »

That's what I could analyze:

square = SN<color:1><square:2><type:2>
arrow = AN<color:1><from:2><to:2><bending:2>

color: A=green, C=blue, D=green
type: 00=rectangle, 01=circle, 02=X
bending: 2C=straight, 2E=bent

For a complete analysis an example with all colors, all marker types (X, arrow, rect, filled rect, circle), and all bending types is required. I think that arrows and squares are using the same color encoding, so only colored rectangles are sufficient. Can you produce such a game? I don't know about the effort of all these combinations.
Ferdy
Posts: 4833
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: C/CIF help - Rybka Aquarium + Chess Assistant

Post by Ferdy »

gcramer wrote:That's what I could analyze:

square = SN<color:1><square:2><type:2>
arrow = AN<color:1><from:2><to:2><bending:2>

color: A=green, C=blue, D=green
type: 00=rectangle, 01=circle, 02=X
bending: 2C=straight, 2E=bent

For a complete analysis an example with all colors, all marker types (X, arrow, rect, filled rect, circle), and all bending types is required. I think that arrows and squares are using the same color encoding, so only colored rectangles are sufficient. Can you produce such a game? I don't know about the effort of all these combinations.
Here is what I have found.

Code: Select all

square = SN<color&#58;1><square&#58;2><type&#58;2> 
arrow = AN<color&#58;1><from&#58;2><to&#58;2><bending&#58;2>
The above is correct.

Correction in your color and a new yellow color code added.

Code: Select all

color&#58; A=red, C=blue, D=green, I=yellow
Comment from your type.

Code: Select all

type&#58; 00=rectangle, 01=circle, 02=X

Code: Select all

00=box &#40;rectangle in the manual but box in the gui, in actual it is a square&#41;
01=circle &#40;is correct&#41;
02=cross
Your bending is correct.

Code: Select all

bending&#58; 2C=straight, 2E=bent


And here is another marker with different format called region.
It is a square filled with backslash lines in the gui markers toolbar.

Code: Select all

region&#58; RE<color><square_from><square_to>
where square_from and square_to are connected, and will form either a rectangle or square, and can be one or more squares.

Sample pgn.

Code: Select all

&#91;Event "Simultan"&#93;
&#91;Site "Hamburg &#40;Germany&#41;"&#93;
&#91;Date "1985.??.??"&#93;
&#91;Round "?"&#93;
&#91;White "Kasparov Garry &#40;RUS&#41;"&#93;
&#91;Black "Computer "Constellation 3 6""&#93;
&#91;Result "1-0"&#93;
&#91;Annotator ""&#93;
&#91;BlackElo "0"&#93;
&#91;Classes "0"&#93;
&#91;ECO "C85"&#93;
&#91;GameID "0"&#93;
&#91;Remark ""&#93;
&#91;Source ""&#93;
&#91;WhiteElo "2700"&#93;

1. e4 e5 &#123;&#91;%t bMrk&#93; X SNCa202 SNAb202 SNDc202 SNId202&#125; 2. Nf3 Nc6 &#123;&#91;%t bMrk&#93; X
SNCa300 SNAb300 SNDc300 SNId300&#125; 3. Bb5 a6 4. Ba4 Nf6 5. O-O Be7 &#123;&#91;%t bMrk&#93; X
SNCa201 SNAb201 SNDc201 SNId201&#125; 6. Bxc6 dxc6 &#123;&#91;%t bMrk&#93; X RECe2e2 REAf2f2
REDg2g2 REIh2h2&#125; 7. d3 Nd7 8. Nbd2 O-O 9. Nc4 f6 10. Nh4 &#123;&#91;%t bMrk&#93; X
ANCc4e32E&#125; 10... Nb6 11. Ne3 Bc5 &#123;&#91;%t bMrk&#93; X ANAh4f52E&#125; 12. Kh1 &#123;&#91;%t bMrk&#93; X
ANIc5g12C&#125; 12... Be6 13. Nef5 Qd7 14. Bd2 Rad8 &#123;&#91;%t bMrk&#93; X RECb7d5&#125; 15. Qe2
Bd4 &#123;&#91;%t bMrk&#93; X ANCe6a22C ANAd4b22C&#125; 16. Nxd4 Qxd4 17. Bc3 Qc5 18. a4 Rd7 19.
Qe1 Rfd8 20. f4 exf4 21. Rxf4 Qg5 22. Qf2 Nc8 23. Nf5 Re8 24. Rf1 Nd6 25. h4
Qg6 26. g4 Bxf5 27. gxf5 Qf7 28. Qf3 Qa2 29. Rg1 Kh8 30. Rfg4 Ree7 31. Qg2 Ne8
32. b3 Qa3 33. h5 Qc5 34. Bb2 Qe3 35. Bc1 Qd4 36. h6 Qe5 37. Bf4 Qd4 38. hxg7+
Rxg7 39. Bh6 Rg5 40. Bxg5 fxg5 41. Rxg5 Ng7 42. Rxg7 Rxg7 43. Qxg7+ Qxg7 44.
Rxg7 Kxg7 1-0
There are more markers and color options in the "More options..." tab, and I am not going to describe it, combinations of it would take much time.