mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 17:46:26 +08:00
Templetize score_xxx() functions
So to be style-wise aligned with the corresponding generate() functions. No functional change.
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#include <algorithm> // For std::max
|
||||
#include <cstring> // For memset
|
||||
|
||||
#include "movegen.h"
|
||||
#include "position.h"
|
||||
#include "search.h"
|
||||
#include "types.h"
|
||||
@@ -79,9 +80,7 @@ public:
|
||||
template<bool SpNode> Move next_move();
|
||||
|
||||
private:
|
||||
void score_captures();
|
||||
void score_noncaptures();
|
||||
void score_evasions();
|
||||
template<GenType> void score();
|
||||
void generate_next();
|
||||
|
||||
const Position& pos;
|
||||
|
||||
Reference in New Issue
Block a user