[LIB-9] Separate chesshog-format module
[chesshog.git] / chesshog-format / src / test / resources / org / hedgecode / chess / fen / FENBuilderTest.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             <fen>rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1</fen>
24             <position>
25                 <initial>true</initial>
26             </position>
27         </test>
28         <test>
29             <name>Morphy's Opera Game</name>
30             <fen>4kb1r/p2n1ppp/4q3/4p1B1/4P3/1Q6/PPP2PPP/2KR4 w k - 0 16</fen>
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             <fen>r1bk2nr/p2p1pNp/n2B4/1p1NP2P/6P1/3P1Q2/P1P1K3/q5b1 w - - 1 22</fen>
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>Empty Position</name>
105             <fen>8/8/8/8/8/8/8/8 w - - 0 1</fen>
106             <position>
107                 <empty>true</empty>
108                 <move>WHITE</move>
109                 <halfmove>0</halfmove>
110                 <fullmove>1</fullmove>
111             </position>
112         </test>
113     </tests>
114 </config>