On using Standard Input/Ouput for different purposes.
posted 7 years ago
I have written a lttle Java chess program, it works nicely but plays poorly.
The program consists of two main components, a GUI and an engine (computer brain that makes moves). In order that I can use my GUI with other engines. I need to have my GUI exist independantly of my engine, and furthermore they should communicate according to a standard protocol, which is described here...
Standard Streams are a feature of many operating systems. By default, they read input from the keyboard and write output to the display. They also support I/O on files and between programs, but that feature is controlled by the command line interpreter, not the program.
I'm pretty sure I can figure out what I need to do, but I have one question before I start.
Standard Input/Output also refers to keyboard and monitor. With that in mind, what sort of questions have to be dealt with concerning whether standard output needs to be shared between my program and keyboard/monitor.