diff options
| author | Adam <adammegarules1@gmail.com> | 2026-07-26 14:10:48 +0200 |
|---|---|---|
| committer | Adam <adammegarules1@gmail.com> | 2026-07-26 14:10:48 +0200 |
| commit | c04f179b9902532a8d5db0c2ebd98460a70fc652 (patch) | |
| tree | 6fe2718c2a172a24c5bf2fc24030392007c80ffa /src/moves.hpp | |
| parent | 1db141c6c0d87cde4270d50b661162273ef6a9f5 (diff) | |
making repl work
Diffstat (limited to 'src/moves.hpp')
| -rw-r--r-- | src/moves.hpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/moves.hpp b/src/moves.hpp index 5f893ca..d99fc68 100644 --- a/src/moves.hpp +++ b/src/moves.hpp @@ -2,30 +2,8 @@ #define SRC_MOVES_H_ #include "board.hpp" -#include <cstdint> #include <vector> -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 { - SUCCES, - FRIENDLY_PIECE, - PIECE_IN_WAY, -}; - -MoveResult PlayMove(Move move, board *b); // TODO implement std::vector<Move> GetLegalMoves(board *b); Position IndexToPosition(int i); void GenerateSlidingMoves(board *b, int from, |
