-
Notifications
You must be signed in to change notification settings - Fork 0
/
format_egf.txt
112 lines (109 loc) · 2.86 KB
/
format_egf.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
EGF = Xie Xie Extended Binary Format
Copyright (C) 2014 Sebastian Pipping <sebastian@pipping.org>
License under Creative Commons Attribution 4.0 International
count value
-----------------------------
1 7
1 13
-----------------------------
1 1
1 0 <= len(event_name) <= 177
... event_name
-----------------------------
1 2
1 0 <= len(event_site) <= 177
... event_site
-----------------------------
1 3
1 0 <= len(date_str) <= 177
... date_str
-----------------------------
1 4
1 0 <= len(round_str) <= 255 ???
... round_str
-----------------------------
1 5
1 0 <= len(player_red_name) <= 177
... player_red_name
-----------------------------
1 6
1 0 <= len(player_red_elo) <= 255 ???
... player_red_elo
-----------------------------
1 7
1 0 <= len(player_black_name) <= 177
... player_black_name
-----------------------------
1 8
1 0 <= len(player_black_elo) <= 177
... player_black_elo
-----------------------------
1 9
4 0 0 0 0 // ???
-----------------------------
1 10
1 result (star -> 0, 1:0 -> 1, 0:1 -> 2, draw -> 3)
-----------------------------
1 11
1 0 <= low(len(game_description)) <= 255
1 0 <= high(len(game_description)) <= 255
... game_description
-----------------------------
1 12
1 0 <= low(len(author)) <= 255
1 0 <= high(len(author)) <= 255
-----------------------------
1 13
1 0 <= low(len(time_measurement)) <= 255
1 0 <= high(len(time_measurement)) <= 255
... time_measurement
-----------------------------
1 1 // ???
34 34 x 0 // ???
-----------------------------
10 Fields i9 to i0
6 6 x 0
10 Fields h9 to h0
6 6 x 0
[..]
10 Fields a9 to a0
-----------------------------
36 36 x 0 // ???
1 ???
-----------------------------
36 Red base row (red king, red left advisor, red right advisor, red left elephant, ..)
8 Red cannon row (0 0 0 x 0 0 0 x)
20 Red soldier row (0 0 0 x 0 0 0 x 0 0 0 x 0 0 0 x 0 0 0 x)
36 Black base row (0 0 0 x 0 0 0 x ..)
8 Black cannon row
20 Black soldier row
-----------------------------
3 3 x 0 // ???
-----------------------------
1 Side to start (red -> 0, black -> 1)
-----------------------------
3 0 0 0 // ???
1 moves done
3 0 0 0 // ???
1 moves total
3 0 0 0 // ???
-----------------------------
1 From field ID
1 0 // ???
1 To field ID
1 0 // ???
1 Beaten piece code (1 to 32, 0 if none)
15 ???
-----------------------------
.. more moves ..
-----------------------------
1 Comment count
1 0 // ???
1 0 // ???
-----------------------------
1 0 <= low(len(comment)) <= 255
1 0 <= high(len(comment)) <= 255
... comment
0/1 0 // present unless last comment
-----------------------------
.. more comments ..