Re: [computer-go] CGOS down? Java client - basic GTP problem
On Wed, 28 Nov 2007, Harri Salakoski wrote: I use pure java solutions when it is possible. plain E3 atleast don't seem work, tried many other combinations also without success. E3 \n Christoph ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] CGOS down? Java client - basic GTP problem
He was not asking about GTP. Anyway, the problem is solved now. On Nov 28, 2007 4:49 PM, Jason House [EMAIL PROTECTED] wrote: On Wed, 2007-11-28 at 04:08 +0200, Harri Salakoski wrote: I use pure java solutions when it is possible. plain E3 atleast don't seem work, tried many other combinations also without success. t. harri According to GTP, the simplest correct response is = G3\n\n ___ 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] CGOS down? Java client - basic GTP problem
On Wed, 2007-11-28 at 04:08 +0200, Harri Salakoski wrote: I use pure java solutions when it is possible. plain E3 atleast don't seem work, tried many other combinations also without success. t. harri According to GTP, the simplest correct response is = G3\n\n ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] CGOS down? Java client - basic GTP problem
command genmove w 30 reply=30 E3 cgos replys gameover 2007-11-27 B+Illegal do not understand syntax GTP specc says : Success Responses - A successful response has one of the syntaxes =id response\n\n =id\n\n = response\n\n =\n\n code is: return = + id + + s + \n\n; stream is written using PrintWriter: myToServer.println(line); Anybody used java with cgos could help or if it is otherway obivious. t.Harii 27.11.2007 20:30:14 narugo.util.MyLog log INFO: Server:gameover 2007-11-27 B+Illegal do not understand syntax - Original Message - From: Harri Salakoski [EMAIL PROTECTED] To: computer-go computer-go@computer-go.org Sent: Tuesday, November 27, 2007 6:32 PM Subject: [computer-go] CGOS down? Java client Hmm, I am not sure as only trying to make Java bot connect CGOS, but it seems to be down. It seems that it does not give feedback after password. Also I found cgos email list cgos-developers is it also for users or is this list ok? t. harri ___ 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] CGOS down? Java client - basic GTP problem
I guess the issue is on the id field. Id field is only optional. If the request has no id field, the response should not have it either. In your code example, it seems you always reply back with an id field. On Nov 27, 2007 1:40 PM, Harri Salakoski [EMAIL PROTECTED] wrote: command genmove w 30 reply=30 E3 cgos replys gameover 2007-11-27 B+Illegal do not understand syntax GTP specc says : Success Responses - A successful response has one of the syntaxes =id response\n\n =id\n\n = response\n\n =\n\n code is: return = + id + + s + \n\n; stream is written using PrintWriter: myToServer.println(line); Anybody used java with cgos could help or if it is otherway obivious. t.Harii 27.11.2007 20:30:14 narugo.util.MyLog log INFO: Server:gameover 2007-11-27 B+Illegal do not understand syntax - Original Message - From: Harri Salakoski [EMAIL PROTECTED] To: computer-go computer-go@computer-go.org Sent: Tuesday, November 27, 2007 6:32 PM Subject: [computer-go] CGOS down? Java client Hmm, I am not sure as only trying to make Java bot connect CGOS, but it seems to be down. It seems that it does not give feedback after password. Also I found cgos email list cgos-developers is it also for users or is this list ok? t. harri ___ 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/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] CGOS down? Java client - basic GTP problem
Harri Salakoski wrote: command genmove w 30 reply=30 E3 cgos replys gameover 2007-11-27 B+Illegal do not understand syntax The cgos server does not speak GTP. A common solution is to let the cgos client cgosGtp.tcl translate the server protocol into GTP before connecting the engine. /Gunnar ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] CGOS down? Java client - basic GTP problem
30 is not an id, command ids are at the start of lines Does = E3 work as a response? cheers stuart On 27/11/2007, Harri Salakoski [EMAIL PROTECTED] wrote: command genmove w 30 reply=30 E3 cgos replys gameover 2007-11-27 B+Illegal do not understand syntax GTP specc says : Success Responses - A successful response has one of the syntaxes =id response\n\n =id\n\n = response\n\n =\n\n code is: return = + id + + s + \n\n; stream is written using PrintWriter: myToServer.println(line); Anybody used java with cgos could help or if it is otherway obivious. t.Harii 27.11.2007 20:30:14 narugo.util.MyLog log INFO: Server:gameover 2007-11-27 B+Illegal do not understand syntax - Original Message - From: Harri Salakoski [EMAIL PROTECTED] To: computer-go computer-go@computer-go.org Sent: Tuesday, November 27, 2007 6:32 PM Subject: [computer-go] CGOS down? Java client Hmm, I am not sure as only trying to make Java bot connect CGOS, but it seems to be down. It seems that it does not give feedback after password. Also I found cgos email list cgos-developers is it also for users or is this list ok? t. harri ___ 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/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] CGOS down? Java client - basic GTP problem
On Tue, Nov 27, 2007 at 08:40:11PM +0200, Harri Salakoski wrote: command genmove w 30 reply=30 E3 cgos replys gameover 2007-11-27 B+Illegal do not understand syntax GTP specc says : Success Responses - A successful response has one of the syntaxes =id response\n\n =id\n\n = response\n\n =\n\n code is: return = + id + + s + \n\n; stream is written using PrintWriter: myToServer.println(line); Anybody used java with cgos could help or if it is otherway obivious. Does your bot work with gtp2gtp and/or kgsGtp? It's usually much easier to debug, especially with gtp2gtp where you have sources handy, what exactly goes wrong. -- Petr Pasky Baudis We don't know who it was that discovered water, but we're pretty sure that it wasn't a fish. -- Marshall McLuhan ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] CGOS down? Java client - basic GTP problem
Cgos has it's own syntax - it's not GTP although it superficially resembles GTP. cgos3.tcl sits between your program and the server and converts the conversation to gtp for your program. - Don Harri Salakoski wrote: command genmove w 30 reply=30 E3 cgos replys gameover 2007-11-27 B+Illegal do not understand syntax GTP specc says : Success Responses - A successful response has one of the syntaxes =id response\n\n =id\n\n = response\n\n =\n\n code is: return = + id + + s + \n\n; stream is written using PrintWriter: myToServer.println(line); Anybody used java with cgos could help or if it is otherway obivious. t.Harii 27.11.2007 20:30:14 narugo.util.MyLog log INFO: Server:gameover 2007-11-27 B+Illegal do not understand syntax - Original Message - From: Harri Salakoski [EMAIL PROTECTED] To: computer-go computer-go@computer-go.org Sent: Tuesday, November 27, 2007 6:32 PM Subject: [computer-go] CGOS down? Java client Hmm, I am not sure as only trying to make Java bot connect CGOS, but it seems to be down. It seems that it does not give feedback after password. Also I found cgos email list cgos-developers is it also for users or is this list ok? t. harri ___ 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/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] CGOS down? Java client - basic GTP problem
I use pure java solutions when it is possible. plain E3 atleast don't seem work, tried many other combinations also without success. t. harri - Original Message - From: Don Dailey [EMAIL PROTECTED] To: computer-go computer-go@computer-go.org Sent: Tuesday, November 27, 2007 10:00 PM Subject: Re: [computer-go] CGOS down? Java client - basic GTP problem Cgos has it's own syntax - it's not GTP although it superficially resembles GTP. cgos3.tcl sits between your program and the server and converts the conversation to gtp for your program. - Don Harri Salakoski wrote: command genmove w 30 reply=30 E3 cgos replys gameover 2007-11-27 B+Illegal do not understand syntax GTP specc says : Success Responses - A successful response has one of the syntaxes =id response\n\n =id\n\n = response\n\n =\n\n code is: return = + id + + s + \n\n; stream is written using PrintWriter: myToServer.println(line); Anybody used java with cgos could help or if it is otherway obivious. t.Harii 27.11.2007 20:30:14 narugo.util.MyLog log INFO: Server:gameover 2007-11-27 B+Illegal do not understand syntax - Original Message - From: Harri Salakoski [EMAIL PROTECTED] To: computer-go computer-go@computer-go.org Sent: Tuesday, November 27, 2007 6:32 PM Subject: [computer-go] CGOS down? Java client Hmm, I am not sure as only trying to make Java bot connect CGOS, but it seems to be down. It seems that it does not give feedback after password. Also I found cgos email list cgos-developers is it also for users or is this list ok? t. harri ___ 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/ ___ 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] CGOS down? Java client - basic GTP problem
Harri Salakoski wrote: commandgenmove w 30 reply=30 E3 cgos replys gameover 2007-11-27 B+Illegal do not understand syntax CGOS server uses a proprietary protocol and not GTP. If you are looking to embedded the protocol within your application (instead of using the cgosGtp.tcl script), you can find a reference implementation in C# up at http://www.codeplex.com/GoTraxx. It connects to the CGOS server via TCP and converts the commands to GTP within the application. It would be fairly trivial to port to Java, including changes to call the appropriate methods directly rather than translating to the GTP command set. There are a few advantages to implementing the protocol within your program. You can implement custom actions between commands, like additional setup commands, and support for pondering. However, this is all extra work and the cgosGtp.tcl works nicely as is. Don also updates it when the CGOS server is updated. If you roll your own, you may have to your re-code when the protocol changes. Phil___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] CGOS down? Java client - basic GTP problem
On Tue, 2007-11-27 at 19:00 -0800, Phil Garcia wrote: There are a few advantages to implementing the protocol within your program. You can implement custom actions between commands, like additional setup commands, and support for pondering. I'm probably missing something, but I don't see how you get those advantages. I don't get how pondering is easier with your own implementation. Is there extra information that the client receives from the server that the client doesn't share with the engine? If not, I don't see how extra setup differs from calling extra functions when receiving specific gtp commands. ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] CGOS down? Java client - basic GTP problem
Yep and thanks, thanks also everybody else who replyed. It is quite solved, it is pure A1 or E3 coordinates which cgos server expects for genmove commands, unfortunately own loop implementation send replys for info and other stuff which i quess was buffered for server, when it was time to handle A1 it server parsed maybe ===A1 or if that was not reason then I have no qlue but anyway now it accepts generated moves. Now played full game without problems. There are a few advantages to implementing the protocol within your program. I'm probably missing something, but I don't see how you get those advantages. At least for Java there is reasons why java code more nice than script. java api calling external binaries is no fun to use, easier debugging, no tcl needed, IDE helps handling java code several vays, no qlue what should be done with tcl, it is anyway simple small piece of code this cgos protocol after it started work. t. harri - Original Message - From: Jason House [EMAIL PROTECTED] To: Phil Garcia [EMAIL PROTECTED]; computer-go computer-go@computer-go.org Sent: Wednesday, November 28, 2007 5:39 AM Subject: Re: [computer-go] CGOS down? Java client - basic GTP problem On Tue, 2007-11-27 at 19:00 -0800, Phil Garcia wrote: There are a few advantages to implementing the protocol within your program. You can implement custom actions between commands, like additional setup commands, and support for pondering. I'm probably missing something, but I don't see how you get those advantages. I don't get how pondering is easier with your own implementation. Is there extra information that the client receives from the server that the client doesn't share with the engine? If not, I don't see how extra setup differs from calling extra functions when receiving specific gtp commands. ___ 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/