[LIB-9] Separate chesshog-hedgefish module
[chesshog.git] / src / test / resources / org / hedgecode / chess / ascii / ASCIIBuilderTest.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             <ascii>
24                 <![CDATA[
25  +-------------------------------+
26  | r | n | b | q | k | b | n | r |
27  +-------------------------------+
28  | p | p | p | p | p | p | p | p |
29  +-------------------------------+
30  |   |   |   |   |   |   |   |   |
31  +-------------------------------+
32  |   |   |   |   |   |   |   |   |
33  +-------------------------------+
34  |   |   |   |   |   |   |   |   |
35  +-------------------------------+
36  |   |   |   |   |   |   |   |   |
37  +-------------------------------+
38  | P | P | P | P | P | P | P | P |
39  +-------------------------------+
40  | R | N | B | Q | K | B | N | R |
41  +-------------------------------+
42                 ]]>
43             </ascii>
44             <asciiType>HYPHEN</asciiType>
45             <position>
46                 <initial>true</initial>
47             </position>
48         </test>
49         <test>
50             <name>Initial Position</name>
51             <ascii>
52                 <![CDATA[
53   ___ ___ ___ ___ ___ ___ ___ ___
54  |_r_|_n_|_b_|_q_|_k_|_b_|_n_|_r_|
55  |_p_|_p_|_p_|_p_|_p_|_p_|_p_|_p_|
56  |___|___|___|___|___|___|___|___|
57  |___|___|___|___|___|___|___|___|
58  |___|___|___|___|___|___|___|___|
59  |___|___|___|___|___|___|___|___|
60  |_P_|_P_|_P_|_P_|_P_|_P_|_P_|_P_|
61  |_R_|_N_|_B_|_Q_|_K_|_B_|_N_|_R_|
62                 ]]>
63             </ascii>
64             <asciiType>TIGHT</asciiType>
65             <position>
66                 <initial>true</initial>
67             </position>
68         </test>
69         <test>
70             <name>Initial Position</name>
71             <ascii>
72                 <![CDATA[
73       a  b  c  d  e  f  g  h
74     +------------------------+
75   8 | r  n  b  q  k  b  n  r | 8
76   7 | p  p  p  p  p  p  p  p | 7
77   6 | .  .  .  .  .  .  .  . | 6
78   5 | .  .  .  .  .  .  .  . | 5
79   4 | .  .  .  .  .  .  .  . | 4
80   3 | .  .  .  .  .  .  .  . | 3
81   2 | P  P  P  P  P  P  P  P | 2
82   1 | R  N  B  Q  K  B  N  R | 1
83     +------------------------+
84       a  b  c  d  e  f  g  h
85                 ]]>
86             </ascii>
87             <asciiType>DOT</asciiType>
88             <withNotation>true</withNotation>
89             <position>
90                 <initial>true</initial>
91             </position>
92         </test>
93         <test>
94             <name>Initial Position</name>
95             <ascii>
96                 <![CDATA[
97  ╔═══╤═══╤═══╤═══╤═══╤═══╤═══╤═══╗
98  ║ r │ n │ b │ q │ k │ b │ n │ r ║
99  ╟───┼───┼───┼───┼───┼───┼───┼───╢
100  ║ p │ p │ p │ p │ p │ p │ p │ p ║
101  ╟───┼───┼───┼───┼───┼───┼───┼───╢
102  ║   │   │   │   │   │   │   │   ║
103  ╟───┼───┼───┼───┼───┼───┼───┼───╢
104  ║   │   │   │   │   │   │   │   ║
105  ╟───┼───┼───┼───┼───┼───┼───┼───╢
106  ║   │   │   │   │   │   │   │   ║
107  ╟───┼───┼───┼───┼───┼───┼───┼───╢
108  ║   │   │   │   │   │   │   │   ║
109  ╟───┼───┼───┼───┼───┼───┼───┼───╢
110  ║ P │ P │ P │ P │ P │ P │ P │ P ║
111  ╟───┼───┼───┼───┼───┼───┼───┼───╢
112  ║ R │ N │ B │ Q │ K │ B │ N │ R ║
113  ╚═══╧═══╧═══╧═══╧═══╧═══╧═══╧═══╝
114                 ]]>
115             </ascii>
116             <asciiType>CP866</asciiType>
117             <withNotation>false</withNotation>
118             <position>
119                 <initial>true</initial>
120             </position>
121         </test>
122         <test>
123             <name>Reti's Etude</name>
124             <ascii>
125                 <![CDATA[
126  +------------------------+
127  | .  .  .  .  .  .  .  K |
128  | .  .  .  .  .  .  .  . |
129  | k  .  P  .  .  .  .  . |
130  | .  .  .  .  .  .  .  p |
131  | .  .  .  .  .  .  .  . |
132  | .  .  .  .  .  .  .  . |
133  | .  .  .  .  .  .  .  . |
134  | .  .  .  .  .  .  .  . |
135  +------------------------+
136                 ]]>
137             </ascii>
138             <asciiType>DOT</asciiType>
139             <position>
140                 <squares>
141                     <h8>WHITE_KING</h8>
142                     <c6>WHITE_PAWN</c6>
143                     <a6>BLACK_KING</a6>
144                     <h5>BLACK_PAWN</h5>
145                 </squares>
146                 <move>WHITE</move>
147             </position>
148         </test>
149         <test>
150             <name>Empty Position</name>
151             <ascii>
152                 <![CDATA[
153  +------------------------+
154  | .  .  .  .  .  .  .  . |
155  | .  .  .  .  .  .  .  . |
156  | .  .  .  .  .  .  .  . |
157  | .  .  .  .  .  .  .  . |
158  | .  .  .  .  .  .  .  . |
159  | .  .  .  .  .  .  .  . |
160  | .  .  .  .  .  .  .  . |
161  | .  .  .  .  .  .  .  . |
162  +------------------------+
163                 ]]>
164             </ascii>
165             <asciiType>DOT</asciiType>
166             <position>
167                 <empty>true</empty>
168                 <move>WHITE</move>
169             </position>
170         </test>
171     </tests>
172 </config>