Fixed a bug that White and Black are reversed.

This commit is contained in:
Hisayori Noda
2019-06-22 00:37:10 +09:00
parent 9dab4660ce
commit 998d8721bd

View File

@@ -134,7 +134,7 @@ void AddExample(Position& pos, Color rootColor,
for (const auto trigger : kRefreshTriggers) {
RawFeatures::AppendActiveIndices(pos, trigger, active_indices);
}
if (pos.side_to_move() != BLACK) {
if (pos.side_to_move() != WHITE) {
active_indices[0].swap(active_indices[1]);
}
for (const auto color : Colors) {