I'm starting to work on a chess engine and I want to follow the uci interface where comunication is done using plane text. In the specification it says
all communication is done via standard input and output with text commands
but I dont know what this means in real terms.
I'm thinking of writing in C# as a .net standard library. I understand that as uci is cross platform we cannot talk in language like Console.WriteLine
but what does that line in the api mean for me.
Do I have to run a loop listening for Console.ReadLine()
or something similar for standard input? I just don't get it. Or should I be writing a console application that takes the input as a command line argument, and writes string to the console?
The full specification can be downloaded from this link: http://download.shredderchess.com/div/uci.zip
Any process have three default streams:
You can communicate with the containing process (such a console prompt) with these streams. The command line arguments can be passed only to the program's main method.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.