diff --git a/src/Heuristic.cpp b/src/Heuristic.cpp index 811df19..cfce663 100644 --- a/src/Heuristic.cpp +++ b/src/Heuristic.cpp @@ -5,8 +5,7 @@ #include "Heuristic.hpp" /* Heuristic Functions */ - -// counts number of setbits +// using BB = BitBoard; @@ -161,12 +160,12 @@ int Heuristic::jumpeablePieces() const temp = (board->rotr32(emptyPos, 1) & BB::downLeft) & w; accumP |= (board->rotr32(temp, 1) & BB::downLeft) & b; temp = (board->rotl32(emptyPos, 7) & BB::upLeft) & w; - accumP |= (board->rotr32(temp, 7) & BB::upLeft) & kings; + accumP |= (board->rotl32(temp, 7) & BB::upLeft) & kings; temp = (board->rotl32(emptyPos, 1) & BB::upRight) & w; accumP |= (board->rotl32(temp, 1) & BB::upRight) & kings; } else { temp = (board->rotl32(emptyPos, 7) & BB::upLeft) & b; - accumP |= (board->rotr32(temp, 7) & BB::upLeft) & w; + accumP |= (board->rotl32(temp, 7) & BB::upLeft) & w; temp = (board->rotl32(emptyPos, 1) & BB::upRight) & b; accumP |= (board->rotl32(temp, 1) & BB::upRight) & w; temp = (board->rotr32(emptyPos, 7) & BB::downRight) & b;