mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +00:00
Workaround the clang-format inconsistencies
closes https://github.com/official-stockfish/Stockfish/pull/5378 No functional change
This commit is contained in:
parent
e6c83beed1
commit
66ed4312f2
3 changed files with 13 additions and 9 deletions
|
@ -178,16 +178,16 @@ trace(Position& pos, const Eval::NNUE::Networks& networks, Eval::NNUE::Accumulat
|
||||||
|
|
||||||
for (std::size_t bucket = 0; bucket < LayerStacks; ++bucket)
|
for (std::size_t bucket = 0; bucket < LayerStacks; ++bucket)
|
||||||
{
|
{
|
||||||
ss << "| " << bucket << " ";
|
ss << "| " << bucket << " " //
|
||||||
ss << " | ";
|
<< " | ";
|
||||||
format_cp_aligned_dot(t.psqt[bucket], ss, pos);
|
format_cp_aligned_dot(t.psqt[bucket], ss, pos);
|
||||||
ss << " "
|
ss << " " //
|
||||||
<< " | ";
|
<< " | ";
|
||||||
format_cp_aligned_dot(t.positional[bucket], ss, pos);
|
format_cp_aligned_dot(t.positional[bucket], ss, pos);
|
||||||
ss << " "
|
ss << " " //
|
||||||
<< " | ";
|
<< " | ";
|
||||||
format_cp_aligned_dot(t.psqt[bucket] + t.positional[bucket], ss, pos);
|
format_cp_aligned_dot(t.psqt[bucket] + t.positional[bucket], ss, pos);
|
||||||
ss << " "
|
ss << " " //
|
||||||
<< " |";
|
<< " |";
|
||||||
if (bucket == t.correctBucket)
|
if (bucket == t.correctBucket)
|
||||||
ss << " <-- this bucket is used";
|
ss << " <-- this bucket is used";
|
||||||
|
|
|
@ -58,8 +58,11 @@ void make_option(OptionsMap* options, const string& n, int v, const SetRange& r)
|
||||||
LastOption = &((*options)[n]);
|
LastOption = &((*options)[n]);
|
||||||
|
|
||||||
// Print formatted parameters, ready to be copy-pasted in Fishtest
|
// Print formatted parameters, ready to be copy-pasted in Fishtest
|
||||||
std::cout << n << "," << v << "," << r(v).first << "," << r(v).second << ","
|
std::cout << n << "," //
|
||||||
<< (r(v).second - r(v).first) / 20.0 << ","
|
<< v << "," //
|
||||||
|
<< r(v).first << "," //
|
||||||
|
<< r(v).second << "," //
|
||||||
|
<< (r(v).second - r(v).first) / 20.0 << "," //
|
||||||
<< "0.0020" << std::endl;
|
<< "0.0020" << std::endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -324,8 +324,9 @@ void UCIEngine::bench(std::istream& args) {
|
||||||
|
|
||||||
dbg_print();
|
dbg_print();
|
||||||
|
|
||||||
std::cerr << "\n==========================="
|
std::cerr << "\n===========================" //
|
||||||
<< "\nTotal time (ms) : " << elapsed << "\nNodes searched : " << nodes
|
<< "\nTotal time (ms) : " << elapsed //
|
||||||
|
<< "\nNodes searched : " << nodes //
|
||||||
<< "\nNodes/second : " << 1000 * nodes / elapsed << std::endl;
|
<< "\nNodes/second : " << 1000 * nodes / elapsed << std::endl;
|
||||||
|
|
||||||
// reset callback, to not capture a dangling reference to nodesSearched
|
// reset callback, to not capture a dangling reference to nodesSearched
|
||||||
|
|
Loading…
Add table
Reference in a new issue