File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ void SelfPlay(const std::string filename) {
159159
160160 for (int i = 0 ; i < randomPlies; i++) {
161161 MoveList moves{};
162- position.GenerateMoves (moves, MoveGen::All, Legality::Legal );
162+ position.GenerateAllLegalMoves (moves);
163163 if (moves.size () == 0 ) {
164164 failed = true ;
165165 break ;
@@ -171,7 +171,7 @@ void SelfPlay(const std::string filename) {
171171
172172 // Rarely, the last move will result in a checkmate position - filter these
173173 MoveList moves{};
174- position.GenerateMoves (moves, MoveGen::All, Legality::Legal );
174+ position.GenerateAllLegalMoves (moves);
175175 if (moves.size () == 0 ) continue ;
176176
177177 // 3. Verify evaluation if acceptable
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ using std::endl;
2121using std::get;
2222using Clock = std::chrono::high_resolution_clock;
2323
24- constexpr std::string_view Version = " dev 1.2.31 " ;
24+ constexpr std::string_view Version = " dev 1.2.32 " ;
2525
2626// Evaluation helpers -----------------------------------------------------------------------------
2727
You can’t perform that action at this time.
0 commit comments