[Move] Lint
This commit is contained in:
32
Move.cpp
32
Move.cpp
@@ -2,16 +2,15 @@
|
|||||||
|
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
|
|
||||||
Move::Move(const Square& from, const Square& to,
|
Move::Move(const Square &from, const Square &to,
|
||||||
const std::optional<PieceType>& promotion)
|
const std::optional<PieceType> &promotion) {
|
||||||
{
|
(void) from;
|
||||||
(void)from;
|
(void) to;
|
||||||
(void)to;
|
(void) promotion;
|
||||||
(void)promotion;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Move::Optional Move::fromUci(const std::string& uci) {
|
Move::Optional Move::fromUci(const std::string &uci) {
|
||||||
(void)uci;
|
(void) uci;
|
||||||
return std::nullopt;
|
return std::nullopt;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -27,20 +26,19 @@ std::optional<PieceType> Move::promotion() const {
|
|||||||
return std::nullopt;
|
return std::nullopt;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::ostream& operator<<(std::ostream& os, const Move& move) {
|
std::ostream &operator<<(std::ostream &os, const Move &move) {
|
||||||
(void)move;
|
(void) move;
|
||||||
return os;
|
return os;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool operator<(const Move &lhs, const Move &rhs) {
|
||||||
bool operator<(const Move& lhs, const Move& rhs) {
|
(void) lhs;
|
||||||
(void)lhs;
|
(void) rhs;
|
||||||
(void)rhs;
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool operator==(const Move& lhs, const Move& rhs) {
|
bool operator==(const Move &lhs, const Move &rhs) {
|
||||||
(void)lhs;
|
(void) lhs;
|
||||||
(void)rhs;
|
(void) rhs;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
12
Move.hpp
12
Move.hpp
@@ -13,10 +13,10 @@ public:
|
|||||||
|
|
||||||
using Optional = std::optional<Move>;
|
using Optional = std::optional<Move>;
|
||||||
|
|
||||||
Move(const Square& from, const Square& to,
|
Move(const Square &from, const Square &to,
|
||||||
const std::optional<PieceType>& promotion = std::nullopt);
|
const std::optional<PieceType> &promotion = std::nullopt);
|
||||||
|
|
||||||
static Optional fromUci(const std::string& uci);
|
static Optional fromUci(const std::string &uci);
|
||||||
|
|
||||||
Square from() const;
|
Square from() const;
|
||||||
Square to() const;
|
Square to() const;
|
||||||
@@ -24,10 +24,10 @@ public:
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
std::ostream& operator<<(std::ostream& os, const Move& move);
|
std::ostream &operator<<(std::ostream &os, const Move &move);
|
||||||
|
|
||||||
// Needed for std::map, std::set
|
// Needed for std::map, std::set
|
||||||
bool operator<(const Move& lhs, const Move& rhs);
|
bool operator<(const Move &lhs, const Move &rhs);
|
||||||
bool operator==(const Move& lhs, const Move& rhs);
|
bool operator==(const Move &lhs, const Move &rhs);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user