RE: [computer-go] Re: Update of MoGo binary release, and windows version available!
Hi, I have a solution now, thanks for all the help. For those interested, the solution for me: I use a ruby script (thanks Chris), to open de mogo program (with IO.popen) and with gets en puts it is possible to read the commands from stdin, and outputs these commands to mogo. Obvously ruby can send these commands without EOF, so mogo does work properly this way. I noticed however that is could be necessary to wait for the reply of mogo before sending another command, because otherwise it sometimes fails. Thanks, Edward. From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: RE: [computer-go] Re: Update of MoGo binary release, and windows version available!Date: Wed, 5 Dec 2007 11:23:42 +0100 Hi to all, Can someone help me with this problem, for which I cannotfind a solution:I am trying to run MoGo in an automatic way, using thecygwin toolkit.The problem in its simplest form is this:If I use MoGo on the command line, typing the commands whichare send by stdin (i suppose) it works perfectly.If I make a file with command like: boardsize 9 genmove wThen MoGo will continue to perform a genmove, and can onlybe stopped by killing it.I vagely suspect that it has something to do with non-blockinginput, but I also do not know all the aspects of this.To be honest, I tried to implement pondering using non-blockinginput, but that did not work out this way, because of some alikeproblems... Now I can run GoGui, and this program seems to work finewith Mogo, so it must be possible to interact automatically. Can you help me?What am I doing wrong? Thanks,Edward Pas je zoekresultaten aan op JOUW wensen met Live.nl! Live.nl _ http://www.live.com/?mkt=nl-nl Live.nl___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] Re: Update of MoGo binary release, and windows version available!
No problem. You might also be able to use my Ruby GTP implementation: http://fantius.com/Gtp.html On Dec 7, 2007 5:49 AM, Edward de Grijs [EMAIL PROTECTED] wrote: Hi, I have a solution now, thanks for all the help. For those interested, the solution for me: I use a ruby script (thanks Chris), to open de mogo program (with IO.popen) and with gets en puts it is possible to read the commands from stdin, and outputs these commands to mogo. Obvously ruby can send these commands without EOF, so mogo does work properly this way. I noticed however that is could be necessary to wait for the reply of mogo before sending another command, because otherwise it sometimes fails. Thanks, Edward. From: [EMAIL PROTECTED] To: computer-go@computer-go.org Subject: RE: [computer-go] Re: Update of MoGo binary release, and windows version available! Date: Wed, 5 Dec 2007 11:23:42 +0100 Hi to all, Can someone help me with this problem, for which I cannot find a solution: I am trying to run MoGo in an automatic way, using the cygwin toolkit. The problem in its simplest form is this: If I use MoGo on the command line, typing the commands which are send by stdin (i suppose) it works perfectly. If I make a file with command like: boardsize 9 genmove w Then MoGo will continue to perform a genmove, and can only be stopped by killing it. I vagely suspect that it has something to do with non-blocking input, but I also do not know all the aspects of this. To be honest, I tried to implement pondering using non-blocking input, but that did not work out this way, because of some alike problems... Now I can run GoGui, and this program seems to work fine with Mogo, so it must be possible to interact automatically. Can you help me? What am I doing wrong? Thanks, Edward Pas je zoekresultaten aan op JOUW wensen met Live.nl! Live.nl Windows Live Messenger het beste van de toekomst Download NU! Windows Live Messenger! ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
RE: [computer-go] Re: Update of MoGo binary release, and windows version available! (repost)
Thanks Hideki, Chris and Jacques for your replies. Hideki wrote: Then, you can make a very simple program that passes a file to stdout first and passes stdin to stdout after the end-of-file of the file. And use it as a.out file | mogo arguments. Is this not the way a tail -f works? This is the method I use with gnugo to let te programs play against each other. The communication between the programs and server program are all using files. This seems fast enough, while I can check all the communications which took place. This tail -f fails in the same way. To check things even more, I tried to communicate using C with popen(): FILE *ptr; if ((ptr = popen(mogo --9 --nbTotalSimulations 3000 mogoout, w)) != NULL) { fprintf(ptr, boardsize 9\n); fprintf(ptr, genmove b\n); sleep(60); } But the result is the same, after these commands, mogo still continues to perform multiple genmoves. I am puzzled here... I will look at the ruby script, and there are also twogtp scripts of gnugo in python, perl etc. which I could check. Edward. _ Probeer Live.nl Probeer Live.nl: zoekmachine van de makers van MSN! ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] Re: Update of MoGo binary release, and windows version available! (repost)
Edward de Grijs: [EMAIL PROTECTED]: Thanks Hideki, Chris and Jacques for your replies. Hideki wrote: Then, you can make a very simple program that passes a file to stdout first and passes stdin to stdout after the end-of-file of the file. And use it as a.out file | mogo arguments. Is this not the way a tail -f works? I don't know the way tail -f works but I guess _no_ as tail never use stdin. That is, the program opens the file at first and copy it to stdout unitl end-of-file. Then the program closes the file and opens stdin and copy it to stdout. This is the method I use with gnugo to let te programs play against each other. The communication between the programs and server program are all using files. This seems fast enough, while I can check all the communications which took place. This tail -f fails in the same way. To check things even more, I tried to communicate using C with popen(): FILE *ptr; if ((ptr = popen(mogo --9 --nbTotalSimulations 3000 mogoout, w)) != NULL) { fprintf(ptr, boardsize 9\n); fprintf(ptr, genmove b\n); sleep(60); } But the result is the same, after these commands, mogo still continues to perform multiple genmoves. I am puzzled here... I guess above code does not work. Probably MoGo reads the last line repeatedly when end-of-file occurs. Hideki I will look at the ruby script, and there are also twogtp scripts of gnugo in python, perl etc. which I could check. Edward. _ Probeer Live.nl Probeer Live.nl: zoekmachine van de makers van MSN! inline file ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ -- [EMAIL PROTECTED] (Kato) ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
RE: [computer-go] Re: Update of MoGo binary release, and windows version available!
Hi Hideki, The file is used by: cat file | mogo arguments Adding quit to the file lets mogo quit the game, but I want to let mogo wait for the obvious next command like play b vertex Normally I use the pipe with a self made server program that send a new line through the pipe each time one of the two programs, which are competing, generate a move. This works for my program, and also for gnugo, but mogo reacts differently. Maybe I am using a wrong method, or there are much better ways to do this, please let me know. How do others let programs play against each other while maintaining full control as a server? Thanks, Edward. Date: Wed, 5 Dec 2007 22:17:03 +0900 From: [EMAIL PROTECTED] Subject: Re: [computer-go] Re: Update of MoGo binary release, and windows version available! To: computer-go@computer-go.org Adding quit does not help? Edward de Grijs: [EMAIL PROTECTED]: Hi to all, Can someone help me with this problem, for which I cannot find a solution: I am trying to run MoGo in an automatic way, using the cygwin toolkit. The problem in its simplest form is this: If I use MoGo on the command line, typing the commands which are send by stdin (i suppose) it works perfectly. If I make a file with command like: boardsize 9 genmove w Then MoGo will continue to perform a genmove, and can only be stopped by killing it. I vagely suspect that it has something to do with non-blocking input, but I also do not know all the aspects of this. To be honest, I tried to implement pondering using non-blocking input, but that did not work out this way, because of some alike problems... Now I can run GoGui, and this program seems to work fine with Mogo, so it must be possible to interact automatically. Can you help me? What am I doing wrong? Thanks, Edward _ De mooiste afbeeldingen van Angelina Jolie vind je met Live Search http://search.live.com/images/results.aspx?q=angelina%20jolieFORM=QBIR___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] Re: Update of MoGo binary release, and windows version available!
Adding quit does not help? Edward de Grijs: [EMAIL PROTECTED]: Hi to all, Can someone help me with this problem, for which I cannot find a solution: I am trying to run MoGo in an automatic way, using the cygwin toolkit. The problem in its simplest form is this: If I use MoGo on the command line, typing the commands which are send by stdin (i suppose) it works perfectly. If I make a file with command like: boardsize 9 genmove w Then MoGo will continue to perform a genmove, and can only be stopped by killing it. I vagely suspect that it has something to do with non-blocking input, but I also do not know all the aspects of this. To be honest, I tried to implement pondering using non-blocking input, but that did not work out this way, because of some alike problems... Now I can run GoGui, and this program seems to work fine with Mogo, so it must be possible to interact automatically. Can you help me? What am I doing wrong? Thanks, Edward _ Nooit meer offline met Windows Live Messenger op je mobiele telefoon http://www.getlivemobile.nl/ inline file ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ -- [EMAIL PROTECTED] (Kato) ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] Re: Update of MoGo binary release, and windows version available!
Hi Edward, Edward de Grijs: [EMAIL PROTECTED]: Hi Hideki, The file is used by: cat file | mogo arguments I guess MoGo doesn't check end-of-file of stdin. Adding quit to the file lets mogo quit the game, but I want to let mogo wait for the obvious next command like play b vertex Then, you can make a very simple program that passes a file to stdout first and passes stdin to stdout after the end-of-file of the file. And use it as a.out file | mogo arguments. Hope this helps, Hideki Normally I use the pipe with a self made server program that send a new line through the pipe each time one of the two programs, which are competing, generate a move. This works for my program, and also for gnugo, but mogo reacts differently. Maybe I am using a wrong method, or there are much better ways to do this, please let me know. How do others let programs play against each other while maintaining full control as a server? Thanks, Edward. Date: Wed, 5 Dec 2007 22:17:03 +0900 From: [EMAIL PROTECTED] Subject: Re: [computer-go] Re: Update of MoGo binary release, and windows version available! To: computer-go@computer-go.org Adding quit does not help? Edward de Grijs: [EMAIL PROTECTED]: Hi to all, Can someone help me with this problem, for which I cannot find a solution: I am trying to run MoGo in an automatic way, using the cygwin toolkit. The problem in its simplest form is this: If I use MoGo on the command line, typing the commands which are send by stdin (i suppose) it works perfectly. If I make a file with command like: boardsize 9 genmove w Then MoGo will continue to perform a genmove, and can only be stopped by killing it. I vagely suspect that it has something to do with non-blocking input, but I also do not know all the aspects of this. To be honest, I tried to implement pondering using non-blocking input, but that did not work out this way, because of some alike problems... Now I can run GoGui, and this program seems to work fine with Mogo, so it must be possible to interact automatically. Can you help me? What am I doing wrong? Thanks, Edward _ De mooiste afbeeldingen van Angelina Jolie vind je met Live Search http://search.live.com/images/results.aspx?q=angelina%20jolieFORM=QBIR inline file ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ -- [EMAIL PROTECTED] (Kato) ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] Re: Update of MoGo binary release, and windows version available!
You can find my Ruby Mogo controller here: http://fantius.com/Mogo.rb I created and used this for MechaGoZilla in the November KGS Computer Go Tournament. On Dec 5, 2007 8:53 AM, Edward de Grijs [EMAIL PROTECTED] wrote: Hi Hideki, The file is used by: cat file | mogo arguments Adding quit to the file lets mogo quit the game, but I want to let mogo wait for the obvious next command like play b vertex Normally I use the pipe with a self made server program that send a new line through the pipe each time one of the two programs, which are competing, generate a move. This works for my program, and also for gnugo, but mogo reacts differently. Maybe I am using a wrong method, or there are much better ways to do this, please let me know. How do others let programs play against each other while maintaining full control as a server? Thanks, Edward. Date: Wed, 5 Dec 2007 22:17:03 +0900 From: [EMAIL PROTECTED] Subject: Re: [computer-go] Re: Update of MoGo binary release, and windows version available! To: computer-go@computer-go.org Adding quit does not help? Edward de Grijs: [EMAIL PROTECTED]: Hi to all, Can someone help me with this problem, for which I cannot find a solution: I am trying to run MoGo in an automatic way, using the cygwin toolkit. The problem in its simplest form is this: If I use MoGo on the command line, typing the commands which are send by stdin (i suppose) it works perfectly. If I make a file with command like: boardsize 9 genmove w Then MoGo will continue to perform a genmove, and can only be stopped by killing it. I vagely suspect that it has something to do with non-blocking input, but I also do not know all the aspects of this. To be honest, I tried to implement pondering using non-blocking input, but that did not work out this way, because of some alike problems... Now I can run GoGui, and this program seems to work fine with Mogo, so it must be possible to interact automatically. Can you help me? What am I doing wrong? Thanks, Edward Windows Live Mail: Nu 2gb aan opslag - dat zijn maar liefst 1000 foto's - en nog steeds gratis! Windows Live Mail ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
RE: [computer-go] Re: Update of MoGo binary release, and windows version available!
Hi to all, Can someone help me with this problem, for which I cannot find a solution: I am trying to run MoGo in an automatic way, using the cygwin toolkit. The problem in its simplest form is this: If I use MoGo on the command line, typing the commands which are send by stdin (i suppose) it works perfectly. If I make a file with command like: boardsize 9 genmove w Then MoGo will continue to perform a genmove, and can only be stopped by killing it. I vagely suspect that it has something to do with non-blocking input, but I also do not know all the aspects of this. To be honest, I tried to implement pondering using non-blocking input, but that did not work out this way, because of some alike problems... Now I can run GoGui, and this program seems to work fine with Mogo, so it must be possible to interact automatically. Can you help me? What am I doing wrong? Thanks, Edward _ Nooit meer offline met Windows Live Messenger op je mobiele telefoon http://www.getlivemobile.nl/___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] Re: Update of MoGo binary release, and windows version available! (repost)
Hi Edward, Edward de Grijs: [EMAIL PROTECTED]: Hi Hideki, The file is used by: cat file | mogo arguments I guess MoGo doesn't check end-of-file of stdin. Adding quit to the file lets mogo quit the game, but I want to let mogo wait for the obvious next command like play b vertex Then, you can make a very simple program that passes a file to stdout first and passes stdin to stdout after the end-of-file of the file. And use it as a.out file | mogo arguments. Hope this helps, Hideki Normally I use the pipe with a self made server program that send a new line through the pipe each time one of the two programs, which are competing, generate a move. This works for my program, and also for gnugo, but mogo reacts differently. Maybe I am using a wrong method, or there are much better ways to do this, please let me know. How do others let programs play against each other while maintaining full control as a server? Thanks, Edward. Date: Wed, 5 Dec 2007 22:17:03 +0900 From: [EMAIL PROTECTED] Subject: Re: [computer-go] Re: Update of MoGo binary release, and windows version available! To: computer-go@computer-go.org Adding quit does not help? Edward de Grijs: [EMAIL PROTECTED]: Hi to all, Can someone help me with this problem, for which I cannot find a solution: I am trying to run MoGo in an automatic way, using the cygwin toolkit. The problem in its simplest form is this: If I use MoGo on the command line, typing the commands which are send by stdin (i suppose) it works perfectly. If I make a file with command like: boardsize 9 genmove w Then MoGo will continue to perform a genmove, and can only be stopped by killing it. I vagely suspect that it has something to do with non-blocking input, but I also do not know all the aspects of this. To be honest, I tried to implement pondering using non-blocking input, but that did not work out this way, because of some alike problems... Now I can run GoGui, and this program seems to work fine with Mogo, so it must be possible to interact automatically. Can you help me? What am I doing wrong? Thanks, Edward _ De mooiste afbeeldingen van Angelina Jolie vind je met Live Search http://search.live.com/images/results.aspx?q=angelina%20jolieFORM=QBIR inline file ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ -- [EMAIL PROTECTED] (Kato) ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
[computer-go] Re: Update of MoGo binary release, and windows version available!
Hi Sylvain, Thank you for the releases of the Windows version and the Linux version for older processors. The Windows version, however, seems much weaker than MoGo that running on KGS these days on 19x19, even giving much longer time setting such as --time 300 for example. I guess some other settings than time are necessary. So, my question is what setting allows Windows version being the same strength as KGS version? Regards, Hideki Sylvain Gelly: [EMAIL PROTECTED]: Hi all, you can find here: http://www.lri.fr/~gelly/MoGo_Download.htm an update of MoGo's release, especially binary for non pentium4 compatible processors, some other options explained, and maybe more interesting, an option for time management (I stupidly did not think that people would use MoGo with frontend sending time_left). It is basically adding simple interface to what existed before, but I hope it will be useful for you. In the same time of this update, you can finally download a windows version! Unfortunately, it is not multithread, and still 30% slower than the linux version, but at least it works :). Hopefully a Mac version will come. Please feel free to share the link to any player you know who may be interested. Best, Sylvain PS: I had no time to check everything. Hopefully it works, but if you find problems please report (and don't be upset ;-)) ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ -- [EMAIL PROTECTED] (Kato) ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] Re: Update of MoGo binary release, and windows version available!
Hi Hideki, The Windows version, however, seems much weaker than MoGo that running on KGS these days on 19x19, even giving much longer time setting such as --time 300 for example. I guess some other settings than time are necessary. Sorry, you are right the 19x19 settings always put the time management on. So either play with --totalTime xx (instead of --time xx) and use some frontend sending the time_left command, or add --timeManagementMode 0, or wait for me to fix ;). The 9x9 is not affected by that. Sylvain ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] Re: Update of MoGo binary release, and windows version available!
Thank you for the releases of the Windows version and the Linux version for older processors. The Windows version, however, seems much weaker than MoGo that running on KGS these days on 19x19, even giving much longer time setting such as --time 300 for example. I guess some other settings than time are necessary. I'd asked Sylvain this, suggesting he add it to the FAQ. His answer was roughly it plays on KGS with core2 duo 2.66Ghz with 30s/move at 9x9 and 20s/move at 19x19. (Because it actually uses time management it is gradually getting less and less as the game moves to middle then endgame.) I've been playing it at 60s/move on 9x9 (on a celeron 2.8Ghz on linux). It is getting just under 200K simulations in middle-game positions and is definitely dan-level. It is fascinating to see it estimating, say, 0.48 chance of win (for itself, mogo is losing) then I play a move and then it is estimating, say, 0.53 (i.e. mogo is now winning) and almost every time it is right - I made a mistake. Darren ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] Re: Update of MoGo binary release, and windows version available!
Dear Hideki, Dear all, I addressed some of the issues some of you mentioned. Thank you very much for the reports. Now the collision between time management and --time xx in 19x19 is no more here (while you assuming there is no time_left sent). There is also now a --13 option. The --dontDisplay 1 removes all the displays (rather than most of). For the issues reported by Gilles for Drago concerning the final_status and final_status_list alive gtp commands, I read the GTP doc, and I understand now :). MoGo implements a subset of GTP which is sufficient for CGOS, KGS and gogui, so the final_status_list dead works well, and should be enough to compute the score. The others are simply unfortunately not supported. I am very sorry for the inconvenience. Best, Sylvain 2007/9/20, Hideki Kato [EMAIL PROTECTED]: Hi Sylvain, Thank you for the releases of the Windows version and the Linux version for older processors. The Windows version, however, seems much weaker than MoGo that running on KGS these days on 19x19, even giving much longer time setting such as --time 300 for example. I guess some other settings than time are necessary. So, my question is what setting allows Windows version being the same strength as KGS version? Regards, Hideki Sylvain Gelly: [EMAIL PROTECTED]: Hi all, you can find here: http://www.lri.fr/~gelly/MoGo_Download.htm an update of MoGo's release, especially binary for non pentium4 compatible processors, some other options explained, and maybe more interesting, an option for time management (I stupidly did not think that people would use MoGo with frontend sending time_left). It is basically adding simple interface to what existed before, but I hope it will be useful for you. In the same time of this update, you can finally download a windows version! Unfortunately, it is not multithread, and still 30% slower than the linux version, but at least it works :). Hopefully a Mac version will come. Please feel free to share the link to any player you know who may be interested. Best, Sylvain PS: I had no time to check everything. Hopefully it works, but if you find problems please report (and don't be upset ;-)) ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ -- [EMAIL PROTECTED] (Kato) ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/