diff options
| author | Peter B. <peter.bezdek@gmail.com> | 2026-07-26 16:37:26 +0200 |
|---|---|---|
| committer | Peter B. <peter.bezdek@gmail.com> | 2026-07-26 16:37:26 +0200 |
| commit | 7f60a36b744ba2baeee98f490556082f00de3dc9 (patch) | |
| tree | 02854089104a0d4aed01de197d1dcbd5932b0d43 /src/moves.hpp | |
| parent | 63039394e4f8ef056289805bcee6ad1e7519de0a (diff) | |
| parent | a46558e0aab30eb88ac3cafac8d490174bd4785f (diff) | |
Merge branch 'main' of https://github.com/AdamMegaRules/chess
Diffstat (limited to 'src/moves.hpp')
| -rw-r--r-- | src/moves.hpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/moves.hpp b/src/moves.hpp index 7e95910..d99fc68 100644 --- a/src/moves.hpp +++ b/src/moves.hpp @@ -2,26 +2,8 @@ #define SRC_MOVES_H_ #include "board.hpp" -#include <cstdint> #include <vector> -struct Position { - uint8_t rank; - uint8_t file; -}; - -struct Move { - Position From; - Position To; -}; - -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, |
