Wrench56 / cchess

A CLI lichess.org chess made purely in C
Other
2 stars 0 forks source link

c code? #3

Open zartan9 opened 1 year ago

zartan9 commented 1 year ago

hi im working in a c game engine, would your chess be able to be imported? thanks

Wrench56 commented 1 year ago

Hey! Sorry for replying late. Yes, you could import part of my chess program, but generelly, I wouldn't include the whole projects. You want to use most likely the api.c and board.c sources. You can most likely cherrypick everything else from game.c and join.c as these are the ones providing a bridge between the API and the "local board". Other than that I would not use anything else of this repository, as it would just block you from making your own interface.

My code most likely needs some refactoring to fit your own needs.

Note, that my code does NOT yet check for pawn promotion, castle or en passant. I might implement them in the near future if you will use my codebase. Just let me know.

Cheers

zartan9 commented 1 year ago

o wow thanks for reply. Itd be great if you could refactor it direct (Id like to work out payment to you) and i can pay for you to add en passant etc if you are so inclined! thnks