Life In 19x19
http://prod.lifein19x19.com/

How does one go about writing a go server?
http://prod.lifein19x19.com/viewtopic.php?f=10&t=6228
Page 1 of 1

Author:  duckweed [ Sun Jun 24, 2012 7:31 am ]
Post subject:  How does one go about writing a go server?

I was told to write my own go server in egr by an user today because I made some disgruntled remarks about how long it is taking wms to fix the stone sounds.

So how exactly does one go about writing a go server? I am not interested in operating a go server, just in creating one for the kick of it.

Author:  Bill Spight [ Sun Jun 24, 2012 7:41 am ]
Post subject:  Re: How does one go about writing a go server?

See http://senseis.xmp.net/?NNGS :)

Author:  Kaya.gs [ Sun Jun 24, 2012 4:25 pm ]
Post subject:  Re: How does one go about writing a go server?

duckweed wrote:
I was told to write my own go server in egr by an user today because I made some disgruntled remarks about how long it is taking wms to fix the stone sounds.

So how exactly does one go about writing a go server? I am not interested in operating a go server, just in creating one for the kick of it.



If you have to ask this question, then you would need to learn a lot to harness the abilities to build one.
Its a lot of work and effort to build a multiplayer system that just works, and an inmense one to make it a good experience.
I assume you are a programmer?


However, you can definitely collaborate on an existing server. There are some open sourced ones, and Kaya itself has parts of it open-sourced so people can collaborate.

Author:  cyclops [ Sun Jun 24, 2012 4:36 pm ]
Post subject:  Re: How does one go about writing a go server?

kgs move sounds are like bullets into your ear. Try to listen to Guo Juan's teaching audio lessons at KGSplus. You'll want to switch off the sound but then her voice is gone as well.

Author:  duckweed [ Sun Jun 24, 2012 4:50 pm ]
Post subject:  Re: How does one go about writing a go server?

Kaya.gs wrote:

If you have to ask this question, then you would need to learn a lot to harness the abilities to build one.
Its a lot of work and effort to build a multiplayer system that just works, and an inmense one to make it a good experience.
I assume you are a programmer?


However, you can definitely collaborate on an existing server. There are some open sourced ones, and Kaya itself has parts of it open-sourced so people can collaborate.


I'm just curious how hard it would be to write a basic one.



cyclops wrote:
kgs move sounds are like bullets into your ear. Try to listen to Guo Juan's teaching audio lessons at KGSplus. You'll want to switch off the sound but then her voice is gone as well.


Yeah, it always puzzled me why no one ever bought her a noise cancelling microphone or just told her to switch off kgs sounds.

Author:  cata [ Sun Jun 24, 2012 9:01 pm ]
Post subject:  Re: How does one go about writing a go server?

duckweed wrote:
Kaya.gs wrote:

If you have to ask this question, then you would need to learn a lot to harness the abilities to build one.
Its a lot of work and effort to build a multiplayer system that just works, and an inmense one to make it a good experience.
I assume you are a programmer?


However, you can definitely collaborate on an existing server. There are some open sourced ones, and Kaya itself has parts of it open-sourced so people can collaborate.


I'm just curious how hard it would be to write a basic one.


If you don't know how to program, it'll take you several dozen hours to get to making useful progress, and there'll be many hundreds of hours of roadbumps after that before you get something useful working. Them's the breaks. I'd start out by finding a friend who knows how to program and asking if they'll recommend you resources to learn with.

If you do know how to program, you already spent those hours; it's not a particularly unusual or difficult project, so hop to it.

Author:  Kirby [ Mon Jun 25, 2012 3:44 am ]
Post subject:  Re: How does one go about writing a go server?

Are you asking how to program, or...? If you already know how to program, why not start with an SGF parser... Or maybe before that, think of some of the features you want your server to have.

Another problem is, even if you write a server, it will take time to get a lot of people using your server, unless it's really a lot coolaer than the existing ones. And if it's less cool than the existing ones, that may never happen.

Either way, I won't discourage you from trying. If nothing else, you'll learn something... :-)

Author:  duckweed [ Mon Jun 25, 2012 4:14 am ]
Post subject:  Re: How does one go about writing a go server?

Kirby wrote:
Are you asking how to program, or...? If you already know how to program, why not start with an SGF parser... Or maybe before that, think of some of the features you want your server to have.

Another problem is, even if you write a server, it will take time to get a lot of people using your server, unless it's really a lot coolaer than the existing ones. And if it's less cool than the existing ones, that may never happen.

Either way, I won't discourage you from trying. If nothing else, you'll learn something... :-)



I do know some programming, just not anything I would need to do something like this.

I guess I would need to learn python, javascript, html and css and start with trying write to a goban on a web page.

I don't plan to be a go server operator. I think when the programmer is the operator, it is not a good arrangement.

Author:  Laman [ Mon Jun 25, 2012 7:16 am ]
Post subject:  Re: How does one go about writing a go server?

duckweed wrote:
I do know some programming, just not anything I would need to do something like this.

I guess I would need to learn python, javascript, html and css and start with trying write a goban on a web page.

I don't plan to be a go server operator. I think when the programmer is the operator, it is not a good arrangement.

i don't think you will make it, but everything you learn by the way is good to know, so definitely go for it while your enthusiasm lasts

as a side note, the web solution is popular nowadays and i like it personally, but it is by no means necessary, especially not for such a "for fun" project. any language would work. which ones can you speak?

Author:  oren [ Mon Jun 25, 2012 9:38 am ]
Post subject:  Re: How does one go about writing a go server?

Someone already mentioned this above. If you want to see what it takes to write a go server, you can always just take a look at the nngs source code. A few years ago, I compiled it and ran it for fun to check it out.

I think all you really need to write a good server is C, but I'm biased by my day job. :)

Author:  cata [ Mon Jun 25, 2012 6:53 pm ]
Post subject:  Re: How does one go about writing a go server?

Yeah, if you don't have previous experience doing web development, I don't see why there'd be any need to jump down that particular rabbit hole for this project. You could just write the server and client in whatever language you're already comfortable with.

Author:  wms [ Tue Jun 26, 2012 10:04 am ]
Post subject:  Re: How does one go about writing a go server?

Here's how I did it:

1. Spend a few years designing and implementing communications protocols.
2. Learn Java.
3. Write go server with experience from 1 and 2.
4. ???
5. Profit!

I'm still working out step 4.

By the way, I will not be "fixing" the stones sounds. It's a java bug, it works in older java, and at this point I'm fed up and not fixing java bugs any more. Any time I have is going to an HTML client so I can spend my time fixing web browser regressions instead.

Author:  Uberdude [ Tue Jun 26, 2012 10:41 am ]
Post subject:  Re: How does one go about writing a go server?

4. Sell ad-hoc KGS+ lectures on demand?

Author:  xed_over [ Tue Jun 26, 2012 4:18 pm ]
Post subject:  Re: How does one go about writing a go server?

wms wrote:
so I can spend my time fixing web browser regressions instead.

something tells me that you'll soon be wishing you were fixing java bugs instead of dealing with the plethora of browser incompatibilities :)

Author:  mdobbins [ Wed Jun 27, 2012 7:49 am ]
Post subject:  Re: How does one go about writing a go server?

xed_over wrote:
wms wrote:
so I can spend my time fixing web browser regressions instead.

something tells me that you'll soon be wishing you were fixing java bugs instead of dealing with the plethora of browser incompatibilities :)


Make the HTML code work for a browser that runs on every OS, then say that that browser is the KGS client. ;)
At least then no one can complain that they have no way to access KGS as everyone can run multiple browsers on any platform. :)

Author:  cyclops [ Wed Jun 27, 2012 5:34 pm ]
Post subject:  Re: How does one go about writing a go server?

wms wrote:
By the way, I will not be "fixing" the stones sounds. It's a java bug, it works in older java, and at this point I'm fed up and not fixing java bugs any more. Any time I have is going to an HTML client so I can spend my time fixing web browser regressions instead.


It is hard for me to imagine that Java is responsible for having Guo Juan firing auditive bullets at me through KGSPlus. If it is possible to turn stone sound off then someone might tell GJ to switch it off. If it is not possible yet then it is probably not Java that prevents it.

Author:  wms [ Thu Jun 28, 2012 10:23 am ]
Post subject:  Re: How does one go about writing a go server?

cyclops wrote:
It is hard for me to imagine that Java is responsible for having Guo Juan firing auditive bullets at me through KGSPlus.
No, the stones sounds picked up by Guo's mic isn't Java's fault. The stones sounds that you can't hear any more are, though.

Author:  Uberdude [ Thu Jun 28, 2012 10:31 am ]
Post subject:  Re: How does one go about writing a go server?

People have asked her to turn off her stones sounds off. You'd have to ask her why she doesn't. My guess is she doesn't understand the problem / know how to fix it (despite people trying to explain in chat), which is rather surprising seeing as she's a professional Go teacher.

Author:  Javaness2 [ Thu Jun 28, 2012 10:42 am ]
Post subject:  Re: How does one go about writing a go server?

Uberdude wrote:
People have asked her to turn off her stones sounds off. You'd have to ask her why she doesn't. My guess is she doesn't understand the problem / know how to fix it (despite people trying to explain in chat), which is rather surprising seeing as she's a professional Go teacher.


I like the stone sounds in her lectures actually. It gives an additional sense of interaction somehow.

Author:  shapenaji [ Thu Jun 28, 2012 11:11 am ]
Post subject:  Re: How does one go about writing a go server?

Javaness2 wrote:
Uberdude wrote:
People have asked her to turn off her stones sounds off. You'd have to ask her why she doesn't. My guess is she doesn't understand the problem / know how to fix it (despite people trying to explain in chat), which is rather surprising seeing as she's a professional Go teacher.


I like the stone sounds in her lectures actually. It gives an additional sense of interaction somehow.


I suppose there's also another solution, if you have some kind of "levels" app for your computer, you could just bring down that particular frequency a bit. I'm pretty sure they're out there somewhere.

Page 1 of 1 All times are UTC - 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/