[LIB-9] Separate chesshog-format module
[chesshog.git] / chesshog-format / src / test / resources / org / hedgecode / chess / tcd / TCDBuilderTest.xml
1 <?xml version='1.0' encoding='UTF-8'?>
2
3 <!--
4   ~ Copyright (c) 2018. Developed by Hedgecode.
5   ~
6   ~ Licensed under the Apache License, Version 2.0 (the "License");
7   ~ you may not use this file except in compliance with the License.
8   ~ You may obtain a copy of the License at
9   ~
10   ~   http://www.apache.org/licenses/LICENSE-2.0
11   ~
12   ~ Unless required by applicable law or agreed to in writing, software
13   ~ distributed under the License is distributed on an "AS IS" BASIS,
14   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   ~ See the License for the specific language governing permissions and
16   ~ limitations under the License.
17   -->
18
19 <config>
20     <tests>
21         <test>
22             <name>Initial Position</name>
23             <tcd>xG</tcd>
24             <position>
25                 <initial>true</initial>
26             </position>
27         </test>
28         <test>
29             <name>Morphy's Opera Game</name>
30             <tcd>AwNMIHJL1FdCEAVBGLvF+dnP4Xo6-hepgGH0yP0XP</tcd>
31             <position>
32                 <squares>
33                     <c1>WHITE_KING</c1>
34                     <b3>WHITE_QUEEN</b3>
35                     <d1>WHITE_ROOK</d1>
36                     <g5>WHITE_BISHOP</g5>
37                     <a2>WHITE_PAWN</a2>
38                     <b2>WHITE_PAWN</b2>
39                     <c2>WHITE_PAWN</c2>
40                     <e4>WHITE_PAWN</e4>
41                     <f2>WHITE_PAWN</f2>
42                     <g2>WHITE_PAWN</g2>
43                     <h2>WHITE_PAWN</h2>
44                     <e8>BLACK_KING</e8>
45                     <e6>BLACK_QUEEN</e6>
46                     <h8>BLACK_ROOK</h8>
47                     <f8>BLACK_BISHOP</f8>
48                     <d7>BLACK_KNIGHT</d7>
49                     <a7>BLACK_PAWN</a7>
50                     <e5>BLACK_PAWN</e5>
51                     <f7>BLACK_PAWN</f7>
52                     <g7>BLACK_PAWN</g7>
53                     <h7>BLACK_PAWN</h7>
54                 </squares>
55                 <move>WHITE</move>
56                 <castle>
57                     <white>NONE</white>
58                     <black>KING</black>
59                 </castle>
60                 <halfmove>0</halfmove>
61                 <fullmove>16</fullmove>
62             </position>
63         </test>
64         <test>
65             <name>Immortal Game</name>
66             <tcd></tcd>
67             <position>
68                 <squares>
69                     <e2>WHITE_KING</e2>
70                     <f3>WHITE_QUEEN</f3>
71                     <d6>WHITE_BISHOP</d6>
72                     <d5>WHITE_KNIGHT</d5>
73                     <g7>WHITE_KNIGHT</g7>
74                     <a2>WHITE_PAWN</a2>
75                     <c2>WHITE_PAWN</c2>
76                     <d3>WHITE_PAWN</d3>
77                     <e5>WHITE_PAWN</e5>
78                     <g4>WHITE_PAWN</g4>
79                     <h5>WHITE_PAWN</h5>
80                     <d8>BLACK_KING</d8>
81                     <a1>BLACK_QUEEN</a1>
82                     <a8>BLACK_ROOK</a8>
83                     <h8>BLACK_ROOK</h8>
84                     <c8>BLACK_BISHOP</c8>
85                     <g1>BLACK_BISHOP</g1>
86                     <a6>BLACK_KNIGHT</a6>
87                     <g8>BLACK_KNIGHT</g8>
88                     <a7>BLACK_PAWN</a7>
89                     <b5>BLACK_PAWN</b5>
90                     <d7>BLACK_PAWN</d7>
91                     <f7>BLACK_PAWN</f7>
92                     <h7>BLACK_PAWN</h7>
93                 </squares>
94                 <move>WHITE</move>
95                 <castle>
96                     <white>NONE</white>
97                     <black>NONE</black>
98                 </castle>
99                 <halfmove>1</halfmove>
100                 <fullmove>22</fullmove>
101             </position>
102         </test>
103         <test>
104             <name>Reti's Etude</name>
105             <tcd></tcd>
106             <isDiagram>true</isDiagram>
107             <position>
108                 <squares>
109                     <h8>WHITE_KING</h8>
110                     <c6>WHITE_PAWN</c6>
111                     <a6>BLACK_KING</a6>
112                     <h5>BLACK_PAWN</h5>
113                 </squares>
114             </position>
115         </test>
116         <test>
117             <name>Empty Position</name>
118             <tcd>GG</tcd>
119             <isDiagram>true</isDiagram>
120             <position>
121                 <empty>true</empty>
122             </position>
123         </test>
124     </tests>
125 </config>