mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Remove an obsolete comment
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
cb9399445f
commit
bedf80a4c0
1 changed files with 3 additions and 5 deletions
|
@ -72,7 +72,7 @@ namespace {
|
||||||
const Color Them = (Us == WHITE ? BLACK : WHITE);
|
const Color Them = (Us == WHITE ? BLACK : WHITE);
|
||||||
return pos.non_pawn_material(Them) == Value(0)
|
return pos.non_pawn_material(Them) == Value(0)
|
||||||
&& pos.piece_count(Them, PAWN) == 0
|
&& pos.piece_count(Them, PAWN) == 0
|
||||||
&& pos.non_pawn_material(Us) >= RookValueMidgame;
|
&& pos.non_pawn_material(Us) >= RookValueMidgame;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<Color Us> bool is_KBPsK(const Position& pos) {
|
template<Color Us> bool is_KBPsK(const Position& pos) {
|
||||||
|
@ -229,10 +229,8 @@ MaterialInfo* MaterialInfoTable::get_material_info(const Position& pos) {
|
||||||
// OK, we didn't find any special evaluation function for the current
|
// OK, we didn't find any special evaluation function for the current
|
||||||
// material configuration. Is there a suitable scaling function?
|
// material configuration. Is there a suitable scaling function?
|
||||||
//
|
//
|
||||||
// The code below is rather messy, and it could easily get worse later,
|
// We face problems when there are several conflicting applicable
|
||||||
// if we decide to add more special cases. We face problems when there
|
// scaling functions and we need to decide which one to use.
|
||||||
// are several conflicting applicable scaling functions and we need to
|
|
||||||
// decide which one to use.
|
|
||||||
SF* sf;
|
SF* sf;
|
||||||
|
|
||||||
if ((sf = funcs->get<SF>(key)) != NULL)
|
if ((sf = funcs->get<SF>(key)) != NULL)
|
||||||
|
|
Loading…
Add table
Reference in a new issue