aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam <adammegarules1@gmail.com>2026-07-25 15:20:07 +0200
committerAdam <adammegarules1@gmail.com>2026-07-25 15:20:07 +0200
commitf369620f9b57ed8a0fa6060294a962af680306db (patch)
tree9b0b7ffe46b8c48b2224fda3d82fbd9f6b428370 /src
parent55f8cffd1dcd5b2f842b01ef38630233983f844f (diff)
adding struct for moves
Diffstat (limited to 'src')
-rw-r--r--src/moves.cpp3
-rw-r--r--src/moves.hpp19
2 files changed, 22 insertions, 0 deletions
diff --git a/src/moves.cpp b/src/moves.cpp
new file mode 100644
index 0000000..f417499
--- /dev/null
+++ b/src/moves.cpp
@@ -0,0 +1,3 @@
+#include "moves.hpp"
+
+
diff --git a/src/moves.hpp b/src/moves.hpp
new file mode 100644
index 0000000..fae35b1
--- /dev/null
+++ b/src/moves.hpp
@@ -0,0 +1,19 @@
+#ifndef SRC_MOVES_H_
+#define SRC_MOVES_H_
+
+#include "board.hpp"
+#include <cstdint>
+
+struct Position {
+ uint8_t rank;
+ uint8_t file;
+};
+
+struct Move {
+ Position From;
+ Position To;
+};
+
+void PlayMove(Move move, board *b); // TODO implement
+
+#endif /* SRC_MOVES_H_ */