@@ -19,14 +19,14 @@ use crate::interface::{representable_type, RepresentableType, SquareType};
19
19
representable_type ! (
20
20
/// Square represents all the squares present on an Ataxx Board.
21
21
/// The index of each Square is equal to `rank-index * 8 + file-index`.
22
- super enum Square : u8 {
23
- A1 B1 C1 D1 E1 F1 G1
24
- A2 B2 C2 D2 E2 F2 G2
25
- A3 B3 C3 D3 E3 F3 G3
26
- A4 B4 C4 D4 E4 F4 G4
27
- A5 B5 C5 D5 E5 F5 G5
28
- A6 B6 C6 D6 E6 F6 G6
29
- A7 B7 C7 D7 E7 F7 G7
22
+ enum Square : u8 {
23
+ A1 "a1" , B1 "b1" , C1 "c1" , D1 "d1" , E1 "e1" , F1 "f1" , G1 "g1" ,
24
+ A2 "a2" , B2 "b2" , C2 "c2" , D2 "d2" , E2 "e2" , F2 "f2" , G2 "g2" ,
25
+ A3 "a3" , B3 "b3" , C3 "c3" , D3 "d3" , E3 "e3" , F3 "f3" , G3 "g3" ,
26
+ A4 "a4" , B4 "b4" , C4 "c4" , D4 "d4" , E4 "e4" , F4 "f4" , G4 "g4" ,
27
+ A5 "a5" , B5 "b5" , C5 "c5" , D5 "d5" , E5 "e5" , F5 "f5" , G5 "g5" ,
28
+ A6 "a6" , B6 "b6" , C6 "c6" , D6 "d6" , E6 "e6" , F6 "f6" , G6 "g6" ,
29
+ A7 "a7" , B7 "b7" , C7 "c7" , D7 "d7" , E7 "e7" , F7 "f7" , G7 "g7" ,
30
30
}
31
31
) ;
32
32
@@ -38,7 +38,7 @@ impl SquareType for Square {
38
38
representable_type ! (
39
39
/// File represents a file on the Ataxx Board. Each vertical column of Squares
40
40
/// on an Ataxx Board is known as a File. There are 7 of them in total.
41
- super enum File : u8 { A B C D E F G }
41
+ enum File : u8 { A "a" , B "b" , C "c" , D "d" , E "e" , F "f" , G "g" , }
42
42
) ;
43
43
44
44
representable_type ! (
0 commit comments