From f369620f9b57ed8a0fa6060294a962af680306db Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 25 Jul 2026 15:20:07 +0200 Subject: adding struct for moves --- src/moves.cpp | 3 +++ src/moves.hpp | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 src/moves.cpp create mode 100644 src/moves.hpp 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 + +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_ */ -- cgit v1.2.3