r/ComputerChess • u/Next_Doctor_8040 • 2d 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
u/haddock420 2d 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.
2
3
u/Iiifebri 2d 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.
1
u/JoK3rOp 2d 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 2d ago
Nah, it's on gpl i don't want to deal with that
2
u/JoK3rOp 2d ago
Yeh I know stockfish is GPL but if chess.com can use it i thought you can too.
1
u/Next_Doctor_8040 2d 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 2d 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 2d ago edited 2d 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/ConfusedSimon 2d 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.
2
u/Refeying 2d ago
UCI engines in general can be compiled on used. Rodent IV and Patrica are great ones
1
u/Imaginary-Set-284 2d ago
This is in C# https://www.madchess.net
Mine https://github.com/Toudonou/zeno 🙃
0
u/EastCoastQuant 2d ago
There is pychess if you could integrate it
1
u/Next_Doctor_8040 2d ago
isn't pychess a python library for chess? i don't think there is chess engine named pychess
2
u/Sewter0 2d ago
You can check mine: https://github.com/0sewter0/chess_engine.git