I have made a chess game in unity it looks really good and as for Ai someone suggested to use a chess engine so i implemented a process that runs the engine .exe with in the unity project. Everything looks well except for when i build the project then for some reason the Ai does not respond.
I am using this for AI
/////AI Process
stockfish = new Process {
StartInfo = new ProcessStartInfo {
//FileName = ( System.IO.Directory.GetCurrentDirectory () + "\\Assets\\Scripts\\Stockfish\\stockfish.exe" ),
FileName = ( Application.dataPath+"\\Resources\\stockfish.exe"),
Arguments = "",
UseShellExecute = false,
RedirectStandardOutput = true,
RedirectStandardInput = true,
RedirectStandardError = true,
CreateNoWindow = true
}
};
what i need is for my process to work on my deployed platform as well. It works great in editor but for some reason it wont work in the build version.