Independent Move Generation Library
git clone https://github.com/KDesp73/castro
cd castro
make all -j3
libcastro.a
, libcastro.so
and check
should be created
#include <castro.h>
int main() {
Board board = {0};
BoardInitFen(&board, NULL); // Starting Position
Moves moves = GenerateMoves(&board, MOVE_LEGAL);
Move move = moves.list[0];
MakeMove(&board, move);
BoardPrintMove(&board, move);
BoardFree(&board);
return 0;
}
To run tests for each module:
make test
Note
Data-driven testing handled by IncludeOnly/test.h.
Documentation for this library can be found in the header file castro.h