diff options
Diffstat (limited to 'src/moves.cpp')
| -rw-r--r-- | src/moves.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/moves.cpp b/src/moves.cpp index edf6c1e..008020d 100644 --- a/src/moves.cpp +++ b/src/moves.cpp @@ -1,13 +1,14 @@ #include <array> #include <cassert> #include <cstdint> +#include <cstdlib> #include <sys/types.h> #include <vector> #include "board.hpp" #include "moves.hpp" -void GenerateKnightMoves(Game *b, int from, std::vector<Move> &moves) { +void GenerateKnightMoves(Game *b, int from, std::vector<Move> &moves) { Piece knight = b->pieces[from]; if (knight.type != KNIGHT) { assert(false && "Calling generate knight moves on non knight"); |
