aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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_ */