How to Communicate with a Chess engine in Python?
问题 on win 7 i can communicate with a chess engine via commandline. Small Example Session with Stockfish on Win 7: C:\run\Stockfish>stockfish-x64.exe Stockfish 2.2.2 JA SSE42 by Tord Romstad, Marco Costalba and Joona Kiiski quit C:\run\Stockfish> The first line was output by the engine and the 'quit' was what i typed to quit the engine (There are other things i can do, but thats clear to me). Now i want to communicate with that engine from python: import subprocess engine = subprocess.Popen(