PSQT access functions can be static

Also renamed history access value in something more
in line with the meaning.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2010-07-03 05:48:43 +01:00
parent 40ad5194aa
commit 3578207974
4 changed files with 9 additions and 9 deletions

View File

@@ -228,7 +228,7 @@ void MovePicker::score_noncaptures() {
from = move_from(m);
to = move_to(m);
piece = pos.piece_on(from);
cur->score = H.move_ordering_score(piece, to);
cur->score = H.value(piece, to);
}
}
@@ -253,7 +253,7 @@ void MovePicker::score_evasions_or_checks() {
cur->score = pos.midgame_value_of_piece_on(move_to(m))
- pos.type_of_piece_on(move_from(m)) + HistoryMax;
else
cur->score = H.move_ordering_score(pos.piece_on(move_from(m)), move_to(m));
cur->score = H.value(pos.piece_on(move_from(m)), move_to(m));
}
}