Skip to content

Commit 7e85a42

Browse files
committed
Fix compilation issues of XiangqiAra for Windows
1 parent 1ea9a0d commit 7e85a42

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

engine/src/environments/fairy_state/fairyinputrepresentation.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ using namespace std;
55

66
void set_bits_from_bitmap(Bitboard bitboard, size_t channel, float *inputPlanes, Color color) {
77
size_t p = 0;
8-
while (bitboard != 0) {
9-
if (bitboard & 0x1) {
8+
while (bitboard != Bitboard(0)) {
9+
if (bitboard & Bitboard(0x1)) {
1010
if (color == WHITE) {
1111
int col = std::abs(9-std::floor(p/9));
1212
int row = p % 9;
@@ -17,7 +17,7 @@ void set_bits_from_bitmap(Bitboard bitboard, size_t channel, float *inputPlanes,
1717
}
1818
}
1919
// Largeboards use 12 files per rank, xiangqi boards only use 9 files per rank
20-
(p+1) % 9 == 0 ? bitboard >>= 4 : bitboard >>= 1;
20+
(p+1) % 9 == 0 ? bitboard = bitboard >> 4 : bitboard = bitboard >> 1;
2121
p++;
2222
}
2323
}

engine/src/environments/fairy_state/fairystate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ string FairyState::action_to_san(Action action, const std::vector<Action> &legal
118118
}
119119

120120
Tablebase::WDLScore FairyState::check_for_tablebase_wdl(Tablebase::ProbeState &result) {
121-
121+
return Tablebase::WDLScoreNone; // TODO
122122
}
123123

124124
void FairyState::set_auxiliary_outputs(const float* auxiliaryOutputs) {

0 commit comments

Comments
 (0)