diff options
| author | Adam <adammegarules1@gmail.com> | 2026-07-25 15:20:07 +0200 |
|---|---|---|
| committer | Adam <adammegarules1@gmail.com> | 2026-07-25 15:20:07 +0200 |
| commit | f369620f9b57ed8a0fa6060294a962af680306db (patch) | |
| tree | 9b0b7ffe46b8c48b2224fda3d82fbd9f6b428370 /src/moves.hpp | |
| parent | 55f8cffd1dcd5b2f842b01ef38630233983f844f (diff) | |
adding struct for moves
Diffstat (limited to 'src/moves.hpp')
| -rw-r--r-- | src/moves.hpp | 19 |
1 files changed, 19 insertions, 0 deletions
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_ */ |
