mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Add const qualifer to check_is_dangerous
No functional change.
This commit is contained in:
parent
bf706c4a4f
commit
f69c185e02
1 changed files with 2 additions and 2 deletions
|
@ -98,7 +98,7 @@ namespace {
|
||||||
void id_loop(Position& pos);
|
void id_loop(Position& pos);
|
||||||
Value value_to_tt(Value v, int ply);
|
Value value_to_tt(Value v, int ply);
|
||||||
Value value_from_tt(Value v, int ply);
|
Value value_from_tt(Value v, int ply);
|
||||||
bool check_is_dangerous(Position& pos, Move move, Value futilityBase, Value beta);
|
bool check_is_dangerous(const Position& pos, Move move, Value futilityBase, Value beta);
|
||||||
bool allows(const Position& pos, Move first, Move second);
|
bool allows(const Position& pos, Move first, Move second);
|
||||||
bool refutes(const Position& pos, Move first, Move second);
|
bool refutes(const Position& pos, Move first, Move second);
|
||||||
string uci_pv(const Position& pos, int depth, Value alpha, Value beta);
|
string uci_pv(const Position& pos, int depth, Value alpha, Value beta);
|
||||||
|
@ -1335,7 +1335,7 @@ split_point_start: // At split points actual search starts from here
|
||||||
|
|
||||||
// check_is_dangerous() tests if a checking move can be pruned in qsearch()
|
// check_is_dangerous() tests if a checking move can be pruned in qsearch()
|
||||||
|
|
||||||
bool check_is_dangerous(Position& pos, Move move, Value futilityBase, Value beta)
|
bool check_is_dangerous(const Position& pos, Move move, Value futilityBase, Value beta)
|
||||||
{
|
{
|
||||||
Piece pc = pos.piece_moved(move);
|
Piece pc = pos.piece_moved(move);
|
||||||
Square from = from_sq(move);
|
Square from = from_sq(move);
|
||||||
|
|
Loading…
Add table
Reference in a new issue