Hello again:
It seems that nobody tried my small sample of 2moves_LT.cgb book, so anyway I release it today
WITHOUT ANY WARRANTY. If it works, perfect; if not, sorry, I tried it and failed. I will not spent more time in this task.
Firstly, I want to describe my strange conversion method from *.pgn to *.cgb standard: I used
Grob.cgb (the second post of the thread) and
Nimzowitsch-Larsen.cgb (the first post of the thread) as guidelines. I opened them with Notepad (not Notepad++, which will be used later) and I spent some minutes without result until things began to match in my slow mind. I induced a chart of conversion of characters between the two formats. Here are my findings:
Code: Select all
.pgn .cgb
-----------
a .
b g
c h
d O
e j
f i
g B
h N
x x
1 Unknown to me.
2 a
3 b
4 c
5 K
6 Q
7 R
8 d
K Unknown to me.
Q 4
R Unknown to me.
B 6
N 7
+
That is, I think that a check (+) is not indicated with any sign in CGB books. A checkmate (#) is also unknown to me. More things: the initial FEN of a chess game is denoted with
X-, the space between white and black move is denoted with
1, the space between
(n-1)-th black move and
n-th white move (moves, not plies) is indicated with
1&-, where
& is
n in CGB notation (for example, between the first black move and the second white move, the separator is 1a-). Castlings and promotions are unknown to me and the finish of an opening book line is marked with
XYa2XYa (Matthias Gemuh could verify or disprove my statements).
I deleted all the PGN tags and 1/2-1/2 results at the end of each line (it was easy with Notepad) but ECO codes were more time consuming to delete because of their variety. Once I got the PGN as I wanted, I copied it in Notepad++ and did the replacements (Notepad++ is much faster than Notepad for this task) with extreme care: I had luck because there were not moves in the rank 1 (I mean, Nb1 for example)... please remember that rank 1 conversion is unknown to me, as well as castlings and other things explained above. I began with initial FENs (X-) and separators between moves. Then I did the replacements by squares (
a2 |--->
.a and many more) and finally I took care of pieces (I had good luck again because there were neither king moves nor rook moves) in the following way: Bf4, Bf5, etc. were handled with the piece type and their file (Bf) but not their rank, so Bf was converted to 6i and so on. The last task was assign each opening book line to a physical line, therefore I had to force newlines (or line breaks or whatever they are called). I had no clue but Google is too much Google and
\r\n did the trick in Notepad++. That is all!
I uploaded the file 2moves_LT.cgb with its duplicate in .txt extension, just to make easy corrections if needed. This link will die 30 days after the last download.
2moves_LT.cgb.rar (3 KB)
2moves_LT.cgb file size is 22.35 KB more less. I will appreciate feedback (basically 'it works!' or 'it does not work') and in the case of positive feedback, mirror links are accepted as expected.
Regards from Spain.
Ajedrecista.