Public
It's been a long time. I've tried several ways to get the HTML client done, but I just don't have time, and so far nobody I've found has been too interested.
So I'm doing something that I've put off a long time: Open sourcing the protocol. Sort of.
KGS has a binary stream oriented protocol, which is great for the Java and Android client, but unusable for an HTML client. So I wrote a translator to convert the binary protocol into a JSON protocol, delivered over HTTP instead of a persistent stream.
Anybody interested in fiddling with a javascript client, take a look! Download the JSP WAR at http://www.igoweb.org/~wms/kgs/jsonClient-2016-03-01T01_02Z.war and install it on any JSP server. It has an "example client" that's really more of a protocol tester, and a reference that describes all message types upstream and downstream.
Please let me know how it goes!
So I'm doing something that I've put off a long time: Open sourcing the protocol. Sort of.
KGS has a binary stream oriented protocol, which is great for the Java and Android client, but unusable for an HTML client. So I wrote a translator to convert the binary protocol into a JSON protocol, delivered over HTTP instead of a persistent stream.
Anybody interested in fiddling with a javascript client, take a look! Download the JSP WAR at http://www.igoweb.org/~wms/kgs/jsonClient-2016-03-01T01_02Z.war and install it on any JSP server. It has an "example client" that's really more of a protocol tester, and a reference that describes all message types upstream and downstream.
Please let me know how it goes!
View 82 previous comments
+f l
DGS (though a turn-based server) has an open API as well: https://sourceforge.net/p/dragongoserver/dgs-main/ci/master/tree/specs/quick_suite.txtMar 28, 2016
Making pretty good progress so far, haven't really run into any serious problems in a while. Just about ready for basic chatting functionality, no frills. After that I'll probably try to get automatch working, since I suspect that'll be easier than the challenge stuff. Though it might be hard to test without annoying people, I'll have to consider that.Mar 29, 2016
The challenge stuff is easily the hardest thing in the client. I think you're taking the right approach to leave that until you have the rest working.
All the options for editing and playing on a board will probably be more code, but the challenge code is very tricky because of all the ways the UI can operate.Mar 29, 2016
Okay, thanks for the confirmation.
Yeah, I'm a bit dreading the board-editing stuff, just because it's done quite well in the official client IMO and will be hard to match.Mar 29, 2016
This thread is getting really long, so I've created a mailing list for Q&A about the client: https://groups.google.com/forum/#!forum/kgs-client-coding
Please sign up!Mar 30, 2016
Any chance to see websocket version of this Api? Something like this https://ogs.readme.io/docs/real-time-apiMay 15, 2016
Add a comment...