aboutsummaryrefslogtreecommitdiff
path: root/src/moves.hpp
blob: 17a9d7df013021e64ebdf7543e44cfae5829fe73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#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;
};

enum MoveResult {
  SUCCES,
  FRIENDLY_PIECE,
  PIECE_IN_WAY,
};

MoveResult PlayMove(Move move, board *b); // TODO implement

#endif /* SRC_MOVES_H_ */