mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +00:00
Small code style in headers
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
b98bcf858b
commit
d3c4618b3a
7 changed files with 19 additions and 20 deletions
|
@ -65,7 +65,7 @@ enum EndgameType {
|
||||||
template<typename T>
|
template<typename T>
|
||||||
class EndgameFunctionBase {
|
class EndgameFunctionBase {
|
||||||
public:
|
public:
|
||||||
EndgameFunctionBase(Color c) : strongerSide(c) { weakerSide = opposite_color(strongerSide); }
|
EndgameFunctionBase(Color c) : strongerSide(c), weakerSide(opposite_color(c)) {}
|
||||||
virtual ~EndgameFunctionBase() {}
|
virtual ~EndgameFunctionBase() {}
|
||||||
virtual T apply(const Position&) = 0;
|
virtual T apply(const Position&) = 0;
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,7 @@ struct EvalInfo {
|
||||||
PawnInfo* pi;
|
PawnInfo* pi;
|
||||||
|
|
||||||
// attackedBy[color][piece type] is a bitboard representing all squares
|
// attackedBy[color][piece type] is a bitboard representing all squares
|
||||||
// attacked by a given color and piece type. attackedBy[color][0] contains
|
// attacked by a given color and piece type, attackedBy[color][0] contains
|
||||||
// all squares attacked by the given color.
|
// all squares attacked by the given color.
|
||||||
Bitboard attackedBy[2][8];
|
Bitboard attackedBy[2][8];
|
||||||
Bitboard attacked_by(Color c) const { return attackedBy[c][0]; }
|
Bitboard attacked_by(Color c) const { return attackedBy[c][0]; }
|
||||||
|
|
|
@ -119,7 +119,7 @@ inline Move make_ep_move(Square from, Square to) {
|
||||||
//// Prototypes
|
//// Prototypes
|
||||||
////
|
////
|
||||||
|
|
||||||
extern std::ostream &operator << (std::ostream &os, Move m);
|
extern std::ostream& operator<<(std::ostream &os, Move m);
|
||||||
extern Move move_from_string(const Position &pos, const std::string &str);
|
extern Move move_from_string(const Position &pos, const std::string &str);
|
||||||
extern const std::string move_to_string(Move m);
|
extern const std::string move_to_string(Move m);
|
||||||
extern bool move_is_ok(Move m);
|
extern bool move_is_ok(Move m);
|
||||||
|
|
|
@ -49,7 +49,7 @@ extern SearchStack EmptySearchStack;
|
||||||
|
|
||||||
class MovePicker {
|
class MovePicker {
|
||||||
|
|
||||||
MovePicker& operator=(const MovePicker&); // Silence a warning under MSVC
|
MovePicker& operator=(const MovePicker&); // silence a warning under MSVC
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
@ -63,15 +63,14 @@ public:
|
||||||
PH_NONCAPTURES, // Non-captures and underpromotions
|
PH_NONCAPTURES, // Non-captures and underpromotions
|
||||||
PH_EVASIONS, // Check evasions
|
PH_EVASIONS, // Check evasions
|
||||||
PH_QCAPTURES, // Captures in quiescence search
|
PH_QCAPTURES, // Captures in quiescence search
|
||||||
PH_QCHECKS, // Checks in quiescence search
|
PH_QCHECKS, // Non-capture checks in quiescence search
|
||||||
PH_STOP
|
PH_STOP
|
||||||
};
|
};
|
||||||
|
|
||||||
MovePicker(const Position& p, bool pvnode, Move ttm, const SearchStack& ss, Depth d);
|
MovePicker(const Position& p, bool pvnode, Move ttm, const SearchStack& ss, Depth d);
|
||||||
Move get_next_move();
|
Move get_next_move();
|
||||||
Move get_next_move(Lock &lock);
|
Move get_next_move(Lock& lock);
|
||||||
int number_of_moves() const;
|
int number_of_moves() const;
|
||||||
int current_move_score() const;
|
|
||||||
Bitboard discovered_check_candidates() const;
|
Bitboard discovered_check_candidates() const;
|
||||||
|
|
||||||
static void init_phase_table();
|
static void init_phase_table();
|
||||||
|
|
Loading…
Add table
Reference in a new issue