Another bug fix, added pawn rank weight bonus

This commit is contained in:
2022-04-19 12:48:42 -04:00
parent 204cac3174
commit 6ed4f41803
2 changed files with 15 additions and 10 deletions
+2 -4
View File
@@ -580,8 +580,7 @@ std::vector<int> Board::get_moves_for_space(int x, int y, bool check_for_check)
game_board[7][y] = king_piece;
game_board[x][y] = rook_piece;
if (!is_check(game_board[x][y].get_team()))
out_spaces.push_back(7+y*BOARD_SIZE);
out_spaces.push_back(7+y*BOARD_SIZE);
game_board[7][y] = rook_piece;
game_board[x][y] = king_piece;
@@ -596,8 +595,7 @@ std::vector<int> Board::get_moves_for_space(int x, int y, bool check_for_check)
game_board[0][y] = king_piece;
game_board[x][y] = rook_piece;
if (!is_check(game_board[x][y].get_team()))
out_spaces.push_back(y*BOARD_SIZE);
out_spaces.push_back(y*BOARD_SIZE);
game_board[0][y] = rook_piece;
game_board[x][y] = king_piece;