mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +00:00
Minor clean up of some function parameters
No function change Resolves #416
This commit is contained in:
parent
46b5a5f0db
commit
3e2591d83c
3 changed files with 5 additions and 6 deletions
|
@ -26,7 +26,6 @@
|
|||
#include "position.h"
|
||||
#include "search.h"
|
||||
#include "thread.h"
|
||||
#include "tt.h"
|
||||
#include "uci.h"
|
||||
|
||||
using namespace std;
|
||||
|
|
|
@ -250,7 +250,7 @@ namespace {
|
|||
// evaluate_pieces() assigns bonuses and penalties to the pieces of a given color
|
||||
|
||||
template<PieceType Pt, Color Us, bool DoTrace>
|
||||
Score evaluate_pieces(const Position& pos, EvalInfo& ei, Score* mobility, Bitboard* mobilityArea) {
|
||||
Score evaluate_pieces(const Position& pos, EvalInfo& ei, Score* mobility, const Bitboard* mobilityArea) {
|
||||
|
||||
Bitboard b;
|
||||
Square s;
|
||||
|
@ -358,9 +358,9 @@ namespace {
|
|||
}
|
||||
|
||||
template<>
|
||||
Score evaluate_pieces<KING, WHITE, false>(const Position&, EvalInfo&, Score*, Bitboard*) { return SCORE_ZERO; }
|
||||
Score evaluate_pieces<KING, WHITE, false>(const Position&, EvalInfo&, Score*, const Bitboard*) { return SCORE_ZERO; }
|
||||
template<>
|
||||
Score evaluate_pieces<KING, WHITE, true>(const Position&, EvalInfo&, Score*, Bitboard*) { return SCORE_ZERO; }
|
||||
Score evaluate_pieces<KING, WHITE, true>(const Position&, EvalInfo&, Score*, const Bitboard*) { return SCORE_ZERO; }
|
||||
|
||||
|
||||
// evaluate_king() assigns bonuses and penalties to a king of a given color
|
||||
|
|
|
@ -57,7 +57,7 @@ const string PieceToChar(" PNBRQK pnbrqk");
|
|||
// from the bitboards and scan for new X-ray attacks behind it.
|
||||
|
||||
template<int Pt>
|
||||
PieceType min_attacker(const Bitboard* bb, const Square& to, const Bitboard& stmAttackers,
|
||||
PieceType min_attacker(const Bitboard* bb, Square to, Bitboard stmAttackers,
|
||||
Bitboard& occupied, Bitboard& attackers) {
|
||||
|
||||
Bitboard b = stmAttackers & bb[Pt];
|
||||
|
@ -77,7 +77,7 @@ PieceType min_attacker(const Bitboard* bb, const Square& to, const Bitboard& stm
|
|||
}
|
||||
|
||||
template<>
|
||||
PieceType min_attacker<KING>(const Bitboard*, const Square&, const Bitboard&, Bitboard&, Bitboard&) {
|
||||
PieceType min_attacker<KING>(const Bitboard*, Square, Bitboard, Bitboard&, Bitboard&) {
|
||||
return KING; // No need to update bitboards: it is the last cycle
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue