Skip to content

KDesp73/castro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 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

License

MIT

About

Independent Move Generation Library

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published