Another bug fix, added pawn rank weight bonus
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user