tangled
alpha
login
or
join now
nove.dev
/
outsider
0
fork
atom
cleanroom implementation of a chess engine. doesn't work :)
0
fork
atom
overview
issues
pulls
pipelines
Add the rest of white's pieces
nove.dev
8 months ago
f37bfd90
f3d4143b
+19
1 changed file
expand all
collapse all
unified
split
src
lib.rs
+19
src/lib.rs
···
45
45
.iter()
46
46
.map(|&lp| LocatedPiece { rank: 7, ..lp })
47
47
.collect::<Vec<_>>();
48
48
+
49
49
+
let white_pieces = vec![
50
50
+
Piece::Rook,
51
51
+
Piece::Knight,
52
52
+
Piece::Bishop,
53
53
+
Piece::Queen,
54
54
+
Piece::King,
55
55
+
Piece::Bishop,
56
56
+
Piece::Knight,
57
57
+
Piece::Rook,
58
58
+
]
59
59
+
.iter()
60
60
+
.enumerate()
61
61
+
.map(|(piece, idx)| LocatedPiece {
62
62
+
piece,
63
63
+
rank: 0,
64
64
+
file: idx,
65
65
+
});
66
66
+
48
67
Self {
49
68
white: white_pawns,
50
69
black: black_pawns,