Hey I keep getting a read access violation error. Here is where c++ gives the error. if (!(fromSq + 15 & 0x88) && isOpponentsPiece(fromSq + 15, colorToMove) && (pieceMailbox[fromSq + 15] == Piece::RED_PAWN || pieceMailbox[fromSq + 15] == Piece::BLUE_PAWN)) return true; Which is from this...
For some reason the second command I send to my C++ console it keeps returning the same value as the last.
std::string delimiter = ";;";
std::string line = "";
while (std::getline(std::cin, line)) {
size_t pos = 0;
while ((pos = line.find(delimiter)) != std::string::npos) {...
Hey for some reason visual studios is saying variable score is undefined but looking at the code, I can't see why it would not be set. Here is my code below.
int reduction = 1;
if (moveCount == 0) {
Score score = -search(position.makeMove(move), -beta, -alpha, depth - reduction, ply + 1);
}...