diff --git a/engine/src/environments/fairy_state/fairyinputrepresentation.cpp b/engine/src/environments/fairy_state/fairyinputrepresentation.cpp index 4e1377d2..4665a450 100644 --- a/engine/src/environments/fairy_state/fairyinputrepresentation.cpp +++ b/engine/src/environments/fairy_state/fairyinputrepresentation.cpp @@ -5,8 +5,8 @@ using namespace std; void set_bits_from_bitmap(Bitboard bitboard, size_t channel, float *inputPlanes, Color color) { size_t p = 0; - while (bitboard != 0) { - if (bitboard & 0x1) { + while (bitboard != Bitboard(0)) { + if (bitboard & Bitboard(0x1)) { if (color == WHITE) { int col = std::abs(9-std::floor(p/9)); int row = p % 9; @@ -17,7 +17,7 @@ void set_bits_from_bitmap(Bitboard bitboard, size_t channel, float *inputPlanes, } } // Largeboards use 12 files per rank, xiangqi boards only use 9 files per rank - (p+1) % 9 == 0 ? bitboard >>= 4 : bitboard >>= 1; + (p+1) % 9 == 0 ? bitboard = bitboard >> 4 : bitboard = bitboard >> 1; p++; } } diff --git a/engine/src/environments/fairy_state/fairystate.cpp b/engine/src/environments/fairy_state/fairystate.cpp index d3f4e423..55914629 100644 --- a/engine/src/environments/fairy_state/fairystate.cpp +++ b/engine/src/environments/fairy_state/fairystate.cpp @@ -118,7 +118,7 @@ string FairyState::action_to_san(Action action, const std::vector &legal } Tablebase::WDLScore FairyState::check_for_tablebase_wdl(Tablebase::ProbeState &result) { - + return Tablebase::WDLScoreNone; // TODO } void FairyState::set_auxiliary_outputs(const float* auxiliaryOutputs) {