aboutsummaryrefslogtreecommitdiff
path: root/src/moves.hpp
diff options
context:
space:
mode:
authorAdam <adammegarules1@gmail.com>2026-07-26 13:54:49 +0200
committerAdam <adammegarules1@gmail.com>2026-07-26 13:54:49 +0200
commit1db141c6c0d87cde4270d50b661162273ef6a9f5 (patch)
treeb1ae71321b6a9a9800b62e082029ff5ffa490bc8 /src/moves.hpp
parent3b231aa281e16319f8bed37da49e53dd6b950650 (diff)
adding move chenging to repl
Diffstat (limited to 'src/moves.hpp')
-rw-r--r--src/moves.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/moves.hpp b/src/moves.hpp
index 7e95910..5f893ca 100644
--- a/src/moves.hpp
+++ b/src/moves.hpp
@@ -8,11 +8,15 @@
struct Position {
uint8_t rank;
uint8_t file;
+
+ bool operator==(const Position &) const = default;
};
struct Move {
Position From;
Position To;
+
+ bool operator==(const Move &) const = default;
};
enum MoveResult {