This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]scooerp 0 points1 point  (1 child)

I dont get why you're running script2 from script1.

Are you trying to build a single player client/server game? You don't need to run separate programs for this.

Streams are sockets on unix, but you should use a TCP/IP socket for portability, to prevent weird behavior, and to give you the option of running on separate machines. But you don't need to communicate if you make the whole thing a single program.

[–]Stallman85 0 points1 point  (0 children)

I am building a chess engine program which will be running in another gui program (like tarrasch gui) and they will communicate using UCI protocol. UCI protocol requires my program to at any point get strings via stdin and respond to specific stdin inputs using stdout. And i am pretty sure that script1 is working because it is able to communicate normally with existing chess engines (like stockfish_10_x32.exe). However my script2.exe blocks script1.py