Search results

  1. O

    Keep getting a read access violation in c++.

    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...
  2. O

    My C++ console keeps returning the same value as the last.

    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) {...
  3. O

    Visual Studios is saying my variable is undefined for some reason.

    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); }...
Top