X-Git-Url: https://git.ucc.asn.au/?p=progcomp2013.git;a=blobdiff_plain;f=qchess%2Fqchess.py;h=1dd8691002816907f2fb979b0ed015a46ff08fc9;hp=da4cab7d8b2e2bb37cb10010c5682af3a21f7bab;hb=1da52d4a75c75ddff22f3a67a2c06875b335e601;hpb=0138f6b08b7a7f364caf1f7ec6a9a26cf2684dfb diff --git a/qchess/qchess.py b/qchess/qchess.py index da4cab7..1dd8691 100755 --- a/qchess/qchess.py +++ b/qchess/qchess.py @@ -722,7 +722,15 @@ class FifoPlayer(Player): Player.__init__(self, name, colour) os.mkfifo(self.name+".in") os.mkfifo(self.name+".out") - + + try: + self.fifo_out = open_fifo(self.name+".out","w", FifoPlayer.timeout) + except: + raise Exception("FIFO_TIMEOUT") + else: + self.fifo_out.write("START "+colour+"\n") + self.fifo_out.close() + @@ -2995,4 +3003,4 @@ if __name__ == "__main__": # --- main.py --- # -# EOF - created from make on Thursday 20 June 18:09:07 WST 2013 +# EOF - created from make on Friday 21 June 18:15:14 WST 2013