File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 1212bool piece_overlap (std::vector<PiecePos> pp);
1313
1414/* *
15- * TODO
15+ * Sort the entries in the piece order KQRBNPkqrbnp
1616 */
17- bool swap_piece_pos (std::vector<PiecePos> &pieces, bool symmetric_endgame_and_btm );
17+ void sort_piece_pos (std::vector<PiecePos> &pieces);
1818
1919/* *
20- * TODO
20+ * pieces must already be sorted using the above function.
21+ * This function rearranges the pieces to the order required by the endgame tables
22+ * by possible swapping the order such that the black pieces are listed first.
23+ * Returns true if a swap was made - in that case the endgame table must be
24+ * indexed with the opposite color.
2125 */
22- void sort_piece_pos (std::vector<PiecePos> &pieces);
26+ bool swap_piece_pos (std::vector<PiecePos> &pieces, bool symmetric_endgame_and_btm );
2327
2428/* *
2529 * If endgame is KBKP, and bishop captured by pawn is being promoted to queen,
You can’t perform that action at this time.
0 commit comments