mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:57:44 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
1665 changed files with 8479 additions and 8479 deletions
|
@ -18,7 +18,7 @@ void ChessEngine::handle_uci()
|
|||
send_command(UCIOkCommand());
|
||||
}
|
||||
|
||||
void ChessEngine::handle_position(const PositionCommand& command)
|
||||
void ChessEngine::handle_position(PositionCommand const& command)
|
||||
{
|
||||
// FIXME: Implement fen board position.
|
||||
VERIFY(!command.fen().has_value());
|
||||
|
@ -28,7 +28,7 @@ void ChessEngine::handle_position(const PositionCommand& command)
|
|||
}
|
||||
}
|
||||
|
||||
void ChessEngine::handle_go(const GoCommand& command)
|
||||
void ChessEngine::handle_go(GoCommand const& command)
|
||||
{
|
||||
// FIXME: A better algorithm than naive mcts.
|
||||
// FIXME: Add different ways to terminate search.
|
||||
|
|
|
@ -15,8 +15,8 @@ public:
|
|||
virtual ~ChessEngine() override = default;
|
||||
|
||||
virtual void handle_uci() override;
|
||||
virtual void handle_position(const Chess::UCI::PositionCommand&) override;
|
||||
virtual void handle_go(const Chess::UCI::GoCommand&) override;
|
||||
virtual void handle_position(Chess::UCI::PositionCommand const&) override;
|
||||
virtual void handle_go(Chess::UCI::GoCommand const&) override;
|
||||
|
||||
private:
|
||||
ChessEngine() = default;
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#include <AK/String.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
MCTSTree::MCTSTree(const Chess::Board& board, MCTSTree* parent)
|
||||
MCTSTree::MCTSTree(Chess::Board const& board, MCTSTree* parent)
|
||||
: m_parent(parent)
|
||||
, m_board(make<Chess::Board>(board))
|
||||
, m_last_move(board.last_move())
|
||||
|
|
|
@ -19,7 +19,7 @@ public:
|
|||
Heuristic,
|
||||
};
|
||||
|
||||
MCTSTree(const Chess::Board& board, MCTSTree* parent = nullptr);
|
||||
MCTSTree(Chess::Board const& board, MCTSTree* parent = nullptr);
|
||||
|
||||
MCTSTree& select_leaf();
|
||||
MCTSTree& expand();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue