mirror of
https://github.com/sockspls/badfish
synced 2025-05-02 17:49:35 +00:00
Fix a typo in evaluate
Spotted by Lyudmil Antonov. No functional change.
This commit is contained in:
parent
0b2794ae12
commit
800ba28e83
1 changed files with 3 additions and 4 deletions
|
@ -207,7 +207,7 @@ namespace {
|
||||||
Score KingDanger[COLOR_NB][128];
|
Score KingDanger[COLOR_NB][128];
|
||||||
|
|
||||||
|
|
||||||
// apply_weight() weights score v by score w trying to prevent overflow
|
// apply_weight() weighs score 'v' by weight 'w' trying to prevent overflow
|
||||||
Score apply_weight(Score v, const Weight& w) {
|
Score apply_weight(Score v, const Weight& w) {
|
||||||
return make_score(mg_value(v) * w.mg / 256, eg_value(v) * w.eg / 256);
|
return make_score(mg_value(v) * w.mg / 256, eg_value(v) * w.eg / 256);
|
||||||
}
|
}
|
||||||
|
@ -924,9 +924,8 @@ namespace {
|
||||||
|
|
||||||
namespace Eval {
|
namespace Eval {
|
||||||
|
|
||||||
/// evaluate() is the main evaluation function. It always computes two
|
/// evaluate() is the main evaluation function. It returns a static evaluation
|
||||||
/// values, an endgame score and a middlegame score, and interpolates
|
/// of the position always from the point of view of the side to move.
|
||||||
/// between them based on the remaining material.
|
|
||||||
|
|
||||||
Value evaluate(const Position& pos) {
|
Value evaluate(const Position& pos) {
|
||||||
return do_evaluate<false>(pos);
|
return do_evaluate<false>(pos);
|
||||||
|
|
Loading…
Add table
Reference in a new issue