When we first determine the moves available to a player, keep track of the value of the position after the move, e.g. the capture of a rook will be 500, the promotion of a pawn to a queen will be 800. This can allow us to order the moves in the mlist based on their immediate advantage and hopefully find the best moves faster.
When we first determine the moves available to a player, keep track of the value of the position after the move, e.g. the capture of a rook will be 500, the promotion of a pawn to a queen will be 800. This can allow us to order the moves in the mlist based on their immediate advantage and hopefully find the best moves faster.