Skip to content

Commit

Permalink
Fix compilation issues of XiangqiAra for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
QueensGambit committed Feb 14, 2022
1 parent 1ea9a0d commit 7e85a42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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++;
}
}
Expand Down
2 changes: 1 addition & 1 deletion engine/src/environments/fairy_state/fairystate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ string FairyState::action_to_san(Action action, const std::vector<Action> &legal
}

Tablebase::WDLScore FairyState::check_for_tablebase_wdl(Tablebase::ProbeState &result) {

return Tablebase::WDLScoreNone; // TODO
}

void FairyState::set_auxiliary_outputs(const float* auxiliaryOutputs) {
Expand Down

0 comments on commit 7e85a42

Please sign in to comment.