mirror of
https://github.com/official-stockfish/Stockfish.git
synced 2026-07-22 20:57:10 +00:00
remove simple eval
No longer needed after the removal of smallnet. Also remove declaration of `use_smallnet()`. closes https://github.com/official-stockfish/Stockfish/pull/6799 No functional change
This commit is contained in:
committed by
Joost VandeVondele
parent
fcbd160d26
commit
ea48d38283
@@ -36,15 +36,6 @@
|
|||||||
|
|
||||||
namespace Stockfish {
|
namespace Stockfish {
|
||||||
|
|
||||||
// Returns a static, purely materialistic evaluation of the position from
|
|
||||||
// the point of view of the side to move. It can be divided by PawnValue to get
|
|
||||||
// an approximation of the material advantage on the board in terms of pawns.
|
|
||||||
int Eval::simple_eval(const Position& pos) {
|
|
||||||
Color c = pos.side_to_move();
|
|
||||||
return PawnValue * (pos.count<PAWN>(c) - pos.count<PAWN>(~c)) + pos.non_pawn_material(c)
|
|
||||||
- pos.non_pawn_material(~c);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Evaluate is the evaluator for the outer world. It returns a static evaluation
|
// Evaluate is the evaluator for the outer world. It returns a static evaluation
|
||||||
// of the position from the point of view of the side to move.
|
// of the position from the point of view of the side to move.
|
||||||
Value Eval::evaluate(const Eval::NNUE::Network& network,
|
Value Eval::evaluate(const Eval::NNUE::Network& network,
|
||||||
@@ -100,9 +91,6 @@ std::string Eval::trace(Position& pos, const Eval::NNUE::Network& network) {
|
|||||||
v = pos.side_to_move() == WHITE ? v : -v;
|
v = pos.side_to_move() == WHITE ? v : -v;
|
||||||
ss << "NNUE evaluation " << 0.01 * UCIEngine::to_cp(v, pos) << " (white side)\n";
|
ss << "NNUE evaluation " << 0.01 * UCIEngine::to_cp(v, pos) << " (white side)\n";
|
||||||
|
|
||||||
ss << "SimpleEval " << simple_eval(pos)
|
|
||||||
<< " (side to move, internal units)\n\n";
|
|
||||||
|
|
||||||
v = evaluate(network, pos, *accumulators, *caches, VALUE_ZERO);
|
v = evaluate(network, pos, *accumulators, *caches, VALUE_ZERO);
|
||||||
v = pos.side_to_move() == WHITE ? v : -v;
|
v = pos.side_to_move() == WHITE ? v : -v;
|
||||||
|
|
||||||
|
|||||||
@@ -43,8 +43,6 @@ class AccumulatorStack;
|
|||||||
|
|
||||||
std::string trace(Position& pos, const Eval::NNUE::Network& network);
|
std::string trace(Position& pos, const Eval::NNUE::Network& network);
|
||||||
|
|
||||||
int simple_eval(const Position& pos);
|
|
||||||
bool use_smallnet(const Position& pos);
|
|
||||||
Value evaluate(const NNUE::Network& network,
|
Value evaluate(const NNUE::Network& network,
|
||||||
const Position& pos,
|
const Position& pos,
|
||||||
Eval::NNUE::AccumulatorStack& accumulators,
|
Eval::NNUE::AccumulatorStack& accumulators,
|
||||||
|
|||||||
Reference in New Issue
Block a user