- else:
- print "NEW GAME"
- args = ["./qchess.py"]
- if request == None:
- args += ["@fifo:../cgi-data/"+client, "@internal:AgentBishop"]
- elif request == "eigengame":
- args += ["--server=progcomp.ucc.asn.au", "@fifo:../cgi-data/"+client]
- subprocess.Popen(args)
+ elif request == "start":
+ print "New game."
+ args = path+"qchess.py --no-graphics"
+ if mode == None or mode == "bishop":
+ args += " @fifo:../qchess-cgi-data/"+client+" @internal:AgentBishop --log=../qchess-cgi-data/"+client+".log"
+ if mode == "random":
+ args += " @fifo:../qchess-cgi-data/"+client+" @internal:AgentRandom"
+ elif mode == "eigengame":
+ args += " --server=progcomp.ucc.asn.au @fifo:../qchess-cgi-data/"+client
+
+ os.system("echo '"+args+"' | at now")
+
+ # subprocess.Popen(args)
+ # os.spawnl(os.P_NOWAIT, args)
+
+