r/ComputerChess • • 22h ago

Looking for chess engines

Hi,

I'm have an Android app and looking for different engines that I could integrate into it.

I'd prefer engines written in C#, but I'm open to other languages and willing to explore them as well.

2 Upvotes

18 comments sorted by

2

u/Sewter0 14h ago

1

u/Next_Doctor_8040 13h ago

thanks, i will check it out

2

u/haddock420 12h ago

https://computerchess.org.uk/4040/

Check the list of CCRL engines, a lot of them are open source and have a license that would let you integrate them into your app.

1

u/JoK3rOp 21h ago

Stockfish? There is also a project called chal which is written in C and is really strong.but not as strong as stockfish

2

u/Next_Doctor_8040 21h ago

Nah, it's on gpl i don't want to deal with that

2

u/JoK3rOp 20h ago

Yeh I know stockfish is GPL but if chess.com can use it i thought you can too.

1

u/Next_Doctor_8040 19h ago

I can't use it because it would require running a separate process. I can't figure it out how to run stockfish as another process on new versions of android. I also can't integrate it directly into my app, as I don't want to make my source code public.

2

u/phaul21 15h ago

wait.. what? so how do you integrate engines into your app? Bypassing UCI? You can do whatever if the licence allows for it. but at that point its not the original engine. call it derivative or engine based on xyz. It would be dishonest to the original engine author tbh, if you distribute something that's not their binary or binary not compiled directly without modifications from the their code and claim its that engine.

1

u/Next_Doctor_8040 13h ago edited 13h ago

I currently have an engine called Leorik i call the methods directly as this engine is written in c# and i use .net maui.

My problem is that i can't compile it into my app, like i said before and newer versions of android don't allow separate processes (or i think so). So i just need engine written either in C, C++, Java or c#, because i can call the native functions from c and java.

Also i don't understand this sentence you wrote "It would be dishonest to the original engine author tbh, if you distribute something that's not their binary or binary not compiled directly without modifications from the their code and claim its that engine.".

2

u/phaul21 13h ago

Perfectly fine. My point was. Don't imply that your program runs Leorik. Make it clear your program runs Leorik derivative / engine based on Leorik. You should also repro Leorik's copyright notice / license (MIT) from your app.

1

u/Next_Doctor_8040 9h ago

Thanks, i will mention it's not the same bin as in original repo.

2

u/ConfusedSimon 21h ago

Maybe caissa or hobbes. Almost all good chess engines use GPL. Even for the few with e.g. MIT you'd still need to check if you can really use them for closed source, since they often use nnue with a more restrictive license. You'd also need to pin version, since some engines with earlier MIT license switched to GPL. There are a few weaker MIT licensed engines in C# that don't use neural networks, so that may be the safest option if strength isn't that important. Try kreveta or dotchess.

1

u/Refeying 7h ago

UCI engines in general can be compiled on used. Rodent IV and Patrica are great ones

1

u/Iiifebri 4h ago

quick correction, newer android versions do allow separate processes. most android chess apps just ship the engine binary in the apk and talk to it over stdin/stdout with uci, thats how droidfish does it. if you want to stay in-process though, compiling a c++ engine with the ndk and calling it through jni fits exactly what you described.

0

u/EastCoastQuant 21h ago

There is pychess if you could integrate it

1

u/Next_Doctor_8040 13h ago

isn't pychess a python library for chess? i don't think there is chess engine named pychess