I was able to compile Leorik targetting .NET standard 2.1, I needed to do some small changes in the code but it was pretty smooth overall.
Now I need to understand how to build a wrapper like that around it:
class EngineInterface {
Action onNewLine; //called each time engine output a new line
bool start(); //start engine
void stop(); //stop engine
bool startListening(); //if listening call onNewline each time engine output lines, other wise, readLine should be called
bool stopListening();
bool isListening();
bool write(string uciCommand);
string readLine(int timeout);
}
I will also try with MadChess
