Skip to content

Commit

Permalink
fix FRC
Browse files Browse the repository at this point in the history
  • Loading branch information
tryingsomestuff committed Feb 28, 2020
1 parent 3485620 commit 6777a21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions minic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ typedef uint64_t u_int64_t;

#include "json.hpp"

const std::string MinicVersion = "1.46";
const std::string MinicVersion = "1.47";

// *** options
#define WITH_UCI
Expand Down Expand Up @@ -2354,7 +2354,7 @@ bool readMove(const Position & p, const std::string & ss, Square & from, Square
if ( p.b[from] == P_wk && p.b[to] == P_wr ){ moveType = (to<from ? T_wqs : T_wks); }
if ( p.b[from] == P_bk && p.b[to] == P_br ){ moveType = (to<from ? T_bqs : T_bks); }
}
if (!isPseudoLegal(p, ToMove(from, to, moveType))) {
if (!DynamicConfig::FRC && !isPseudoLegal(p, ToMove(from, to, moveType))) {
Logging::LogIt(Logging::logError) << "Trying to read bad move, not legal " << ToString(p) << str;
return false;
}
Expand Down

0 comments on commit 6777a21

Please sign in to comment.