mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +00:00
Test with see
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
173ecc0acf
commit
06d6468ce9
1 changed files with 5 additions and 8 deletions
|
@ -203,7 +203,7 @@ Move MovePicker::get_next_move(Lock &lock) {
|
||||||
/// MovePicker::pick_move_from_list().
|
/// MovePicker::pick_move_from_list().
|
||||||
|
|
||||||
void MovePicker::score_captures() {
|
void MovePicker::score_captures() {
|
||||||
// Winning and equal captures in the main search are ordered by MVV/LVA.
|
// Winning and equal captures in the main search are ordered by MVV.
|
||||||
// Suprisingly, this appears to perform slightly better than SEE based
|
// Suprisingly, this appears to perform slightly better than SEE based
|
||||||
// move ordering. The reason is probably that in a position with a winning
|
// move ordering. The reason is probably that in a position with a winning
|
||||||
// capture, capturing a more valuable (but sufficiently defended) piece
|
// capture, capturing a more valuable (but sufficiently defended) piece
|
||||||
|
@ -216,12 +216,9 @@ void MovePicker::score_captures() {
|
||||||
{
|
{
|
||||||
Move m = moves[i].move;
|
Move m = moves[i].move;
|
||||||
moves[i].score = pos.see(m);
|
moves[i].score = pos.see(m);
|
||||||
if (moves[i].score >= 0)
|
//if (moves[i].score >= 0)
|
||||||
{
|
// moves[i].score = move_promotion(m) ? QueenValueMidgame
|
||||||
moves[i].score = HistoryMax;
|
// : pos.midgame_value_of_piece_on(move_to(m));
|
||||||
moves[i].score += move_promotion(m) ? QueenValueMidgame
|
|
||||||
: pos.midgame_value_of_piece_on(move_to(m));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -266,7 +263,7 @@ void MovePicker::score_evasions() {
|
||||||
|
|
||||||
void MovePicker::score_qcaptures() {
|
void MovePicker::score_qcaptures() {
|
||||||
|
|
||||||
// Use MVV/LVA ordering
|
// Use MVV ordering
|
||||||
for (int i = 0; i < numOfMoves; i++)
|
for (int i = 0; i < numOfMoves; i++)
|
||||||
{
|
{
|
||||||
Move m = moves[i].move;
|
Move m = moves[i].move;
|
||||||
|
|
Loading…
Add table
Reference in a new issue