I ported Portfish (C# Stockfish port) to Unity for a kids chess app
While building a chess app for my kids I needed a chess engine that would work in Unity. I found Portfish — a C# port of Stockfish — but it needed several fixes to run properly in a Unity environment.
Original repo: https://github.com/bpfliegel/Portfish
My Unity fork with fixes: https://github.com/myasovik/Portfish_Unity
The few problems were:
- I needed to clean up some things that overlap with the Unity engine.
- That portfish all the time expected input, and if it did not get it, just existed. So I made it wait for the actual exit command.
If you're curious to see it in action, I ended up shipping it in a free kids chess app on Google Play:
https://play.google.com/store/apps/details?id=com.awesomelyup.chessadventure&hl=en_US
And by the way, if you are interested in trying it, let me know, and I can share the class that communicates with it.