has anybody written a Go program in Go?

564 views
Skip to first unread message

Hugh Aguilar

unread,
Apr 22, 2013, 10:42:21 PM4/22/13
to golang-nuts
I'm referring to the game with the black and white stones, called Go
in Japan and most everywhere else, Baduk in Korea, and Wei-chi in
China. The name "Go" is somewhat confusing --- one time some guys were
playing at a coffee shop and somebody walked up and asked, "What game
is this?" --- one of them said "Go," and the person got angry and
walked away!

I'm only 7-kyu (on KGS, using the name Classic), so I'm not ready to
tackle writing a Go program myself. I would expect that Go would be a
good language though, as it supports concurrency, so the program could
examine multiple areas of the board simultaneously.

I just downloaded Go for Windows. Can anybody recommend an editor that
can be used as an IDE?

I don't have any project that I want to do in Go --- I just want to
learn it for general interest --- hopefully soon I will think of
something that it would be good for, as I have always believed that
the best way to learn a language is to just go ahead and write a
program rather than "study" the language. What kind of programs is Go
mostly used for? Is it competing against against Python as a scripting
language, or against C++ for writing big programs?

Brendan Tracey

unread,
Apr 23, 2013, 12:39:02 AM4/23/13
to golan...@googlegroups.com
Someone started a player, but it doesn't look like it's been worked on much.


Following the tour and reading effective go are good ways to get started. You could also watch some of the videos on youtube, such as https://www.youtube.com/watch?v=jgVhBThJdXc

Hugh Aguilar

unread,
Apr 23, 2013, 3:37:29 AM4/23/13
to golang-nuts
On Apr 22, 9:39 pm, Brendan Tracey <tracey.bren...@gmail.com> wrote:
> Someone started a player, but it doesn't look like it's been worked on much.

What about other games, such as Chess, or the easier ones such as
Reversi and Checkers and so forth?

I invented a game some time ago and have been wanting to write a
program for it. This might be a good project for me to learn Go
programming. It is a card game, but it is amendable to an Alpha-Beta
search.

Any suggestions on graphics libraries, that would include playing
cards?

Does Go get used much for games? It seems like Go's concurrency should
be a natural for games. I haven't given any thought to the subject
since I was a teenager, and in those days I had a Commodore-64 --- our
computers are a little bit more powerful nowadays.

Alexei Sholik

unread,
Apr 23, 2013, 4:19:21 AM4/23/13
to Hugh Aguilar, golang-nuts
Any suggestions on graphics libraries, that would include playing
cards?

I have personally settled on OpenGL through glfw, couldn't find a complete graphics/game engine in Go. You might want to look through these http://code.google.com/p/go-wiki/wiki/Projects#Graphics_and_Audio



--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.





--
Best regards
Alexei Sholik

Peter A. Cejchan

unread,
Apr 23, 2013, 4:29:55 AM4/23/13
to golan...@googlegroups.com

Hotei

unread,
Apr 23, 2013, 4:04:00 PM4/23/13
to golan...@googlegroups.com
Hugh,
A open source library with cards you might consider is pysol-4.60 with 77 different decks in the version I inspected.  They're gif images and many are rather poor resolution but you might find something useful (the standard ones I used with freecell were quite good).  Go's "image/gif" library should be able to handle them though I have NOT tried it myself.

Robin Eklind

unread,
Apr 23, 2013, 11:57:58 PM4/23/13
to golan...@googlegroups.com


On Tuesday, April 23, 2013 9:37:29 AM UTC+2, Hugh Aguilar wrote:
On Apr 22, 9:39 pm, Brendan Tracey <tracey.bren...@gmail.com> wrote:
> Someone started a player, but it doesn't look like it's been worked on much.

What about other games, such as Chess, or the easier ones such as
Reversi and Checkers and so forth?
 
A simple implementation of tic-tac-toe is located at:
https://github.com/mewmew/playground/tree/master/vaga

If you want to try it out, run:
$ go get github.com/mewmew/playground/vaga/cmd/vaga

I uses go.wde for rendering, which makes it cross platform to some extent.
 
https://github.com/skelterjohn/go.wde

I invented a game some time ago and have been wanting to write a
program for it. This might be a good project for me to learn Go
programming. It is a card game, but it is amendable to an Alpha-Beta
search.

Any suggestions on graphics libraries, that would include playing
cards?

OpenGL: https://github.com/chsc/gogl

A game toolkit with OpenGL support: https://github.com/Agon/baukasten
 
Does Go get used much for games? It seems like Go's concurrency should
be a natural for games. I haven't given any thought to the subject
since I was a teenager, and in those days I had a Commodore-64 --- our
computers are a little bit more powerful nowadays.

Good luck :)

Hugh Aguilar

unread,
Apr 24, 2013, 12:45:30 AM4/24/13
to golang-nuts
On Apr 23, 1:04 pm, Hotei <hotei1...@gmail.com> wrote:
> Hugh,
> A open source library with cards you might consider is pysol-4.60 with 77
> different decks in the version I inspected.  They're gif images and many
> are rather poor resolution but you might find something useful (the
> standard ones I used with freecell were quite good).  Go's "image/gif"
> library should be able to handle them though I have NOT tried it myself.

Thanks for everybody's help --- I will look into these links. :-)
Reply all
Reply to author
Forward
0 new messages