X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=qchess%2Fqchess.py;h=1dd8691002816907f2fb979b0ed015a46ff08fc9;hb=068745c990538769b9c4fd48f467a0f938e4c0d6;hp=da4cab7d8b2e2bb37cb10010c5682af3a21f7bab;hpb=538a32cb30f21a1a48653d7b639ab0c82db44d83;p=progcomp2013.git 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