Skip to content

Commit

Permalink
Format code and fix some includes
Browse files Browse the repository at this point in the history
  • Loading branch information
PikaCat-OuO committed May 12, 2024
1 parent 85f77f5 commit ec3c614
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
3 changes: 1 addition & 2 deletions src/engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,11 @@
#include "search.h"
#include "thread.h"
#include "tt.h"
#include "types.h"
#include "ucioption.h"

namespace Stockfish {

enum Square : int;

class Engine {
public:
using InfoShort = Search::InfoShort;
Expand Down
1 change: 0 additions & 1 deletion src/nnue/features/half_ka_v2_hm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

#include "half_ka_v2_hm.h"

#include "../../bitboard.h"
#include "../../position.h"
#include "../../types.h"
#include "../nnue_accumulator.h"
Expand Down
9 changes: 3 additions & 6 deletions src/nnue/nnue_misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,11 @@ std::string trace(Position& pos, const Eval::NNUE::Network& network, Accumulator
ss << "| " << bucket << " ";
ss << " | ";
format_cp_aligned_dot(t.psqt[bucket], ss, pos);
ss << " "
<< " | ";
ss << " " << " | ";
format_cp_aligned_dot(t.positional[bucket], ss, pos);
ss << " "
<< " | ";
ss << " " << " | ";
format_cp_aligned_dot(t.psqt[bucket] + t.positional[bucket], ss, pos);
ss << " "
<< " |";
ss << " " << " |";
if (bucket == t.correctBucket)
ss << " <-- this bucket is used";
ss << '\n';
Expand Down
7 changes: 3 additions & 4 deletions src/uci.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

#include "uci.h"

#include <stdint.h>
#include <algorithm>
#include <cmath>
#include <functional>
Expand Down Expand Up @@ -273,9 +272,9 @@ void UCIEngine::bench(std::istream& args) {

dbg_print();

std::cerr << "\n==========================="
<< "\nTotal time (ms) : " << elapsed << "\nNodes searched : " << nodes
<< "\nNodes/second : " << 1000 * nodes / elapsed << std::endl;
std::cerr << "\n===========================" << "\nTotal time (ms) : " << elapsed
<< "\nNodes searched : " << nodes << "\nNodes/second : " << 1000 * nodes / elapsed
<< std::endl;

// reset callback, to not capture a dangling reference to nodesSearched
engine.set_on_update_full([&](const auto& i) { on_update_full(i, options["UCI_ShowWDL"]); });
Expand Down

0 comments on commit ec3c614

Please sign in to comment.