Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

KDesp73/castro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

37 Commits

Repository files navigation

Castro

Independent Move Generation Library

Get Started

git clone https://github.com/KDesp73/castro
cd castro
make all -j3

libcastro.a, libcastro.so and check should be created

Example

#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;
}

Running Tests

To run tests for each module:

make test

Note

Data-driven testing handled by IncludeOnly/test.h.

Documentation

Documentation for this library can be found in the header file castro.h

Benchmarks

2026年02月22日-185222_hyprshot

License

MIT

AltStyle によって変換されたページ (->オリジナル) /