diff options
| author | Adam <adammegarules1@gmail.com> | 2026-07-29 16:18:52 +0200 |
|---|---|---|
| committer | Adam <adammegarules1@gmail.com> | 2026-07-29 16:18:52 +0200 |
| commit | 1d6a6717ba088c3b89d50021f2bf6656eb564533 (patch) | |
| tree | 83c2ba1c3a89eacf63f8841ccfb93671c5b45bdf /src/moves.cpp | |
| parent | 42c1050af70447e935ad1914e57ccecd9f278e7f (diff) | |
implementing castling
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"); |
