G
G
GreatX2020-01-07 13:20:47
C++ / C#
GreatX, 2020-01-07 13:20:47

How to make a bunch of Unity + Stockfish?

Hello.
How to make a bunch of Unity + Stockfish?
Stockfish itself is a console application, how do I create inter-process communication so that the application starts itself, and the console window does not appear, and how do I pass messages between applications?

using System.Diagnostics;
using System.IO;

class Stockfish
{
    public string path;

    public Stockfish()
    {
        path = Directory.GetCurrentDirectory() + "\\Assets\\stockfish\\stockfish.exe";
        Connection();
    }

    public void Connection()
    {
        Process.Start(path);
    }

}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question