473,395 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

proof of concept python and tkinter gnugo interface

For the last few days I've been doodling with a script that provides a
graphical interface to gnugo by using its GTP protocol. At the moment
the script is *very* basic, in fact the only thing it does is to allow
one to click on a coordinate and place a move there OR press the space
bar in order to let gnugo generate a move.

However, I feel that this idea has some potential, it could be made to
undo or redo moves or load sgf-games. But most importantly: It could
load the list of move suggestions from gnugo, do some computations
itself in *Python* on that list and then generate a move.

So I thought that it would be best to present this script while it is
still small and modifications can be done easily. In the end there's
possibly a lot of potential and I think I'm going to need some help from
people that are enthousiastic about Python or gnugo.

What I want to accomplish with this post is to get to know whether it
would be a good idea to make it a sourceforge project (it would be even
better if some more experienced sourceforger would do it for me :-) or
whether I should just go on doodling on this script by myself, gradually
adapting it to fit my personal interests and come back to you in a few
years with a more complete script.

Is there any need for such a beast for *more* people than just me to
work on?

Here's the proof of concept, just copy it to some dir and run the Python
script:

http://home.hccnet.nl/a.vredegoor/gnugo/

It needs Python 2.5 which you can get at:

http://www.python.org/

Anton
Nov 23 '06 #1
2 1354
Anton Vredegoor wrote:
For the last few days I've been doodling with a script that provides a
graphical interface to gnugo by using its GTP protocol. At the moment
the script is *very* basic, in fact the only thing it does is to allow
one to click on a coordinate and place a move there OR press the space
bar in order to let gnugo generate a move.

However, I feel that this idea has some potential, it could be made to
undo or redo moves or load sgf-games. But most importantly: It could
load the list of move suggestions from gnugo, do some computations
itself in *Python* on that list and then generate a move.

So I thought that it would be best to present this script while it is
still small and modifications can be done easily. In the end there's
possibly a lot of potential and I think I'm going to need some help from
people that are enthousiastic about Python or gnugo.

What I want to accomplish with this post is to get to know whether it
would be a good idea to make it a sourceforge project (it would be even
better if some more experienced sourceforger would do it for me :-) or
whether I should just go on doodling on this script by myself, gradually
adapting it to fit my personal interests and come back to you in a few
years with a more complete script.

Is there any need for such a beast for *more* people than just me to
work on?

Here's the proof of concept, just copy it to some dir and run the Python
script:

http://home.hccnet.nl/a.vredegoor/gnugo/

It needs Python 2.5 which you can get at:

http://www.python.org/

Anton
If you talking about a simple gui for gnu go it's been done to death.
see any misc. pandanet client and numerous other softwares such as
durish or go knot. If your client is going to do something uniquely
different from programs like this then you should focus in this aspect
of the program and develop other features later. It's also important
that it be able to read and write sgf files
Nov 29 '06 #2
grindel wrote:
Anton Vredegoor wrote:
[...]
>Here's the proof of concept, just copy it to some dir and run the
Python script:

http://home.hccnet.nl/a.vredegoor/gnugo/

It needs Python 2.5 which you can get at:

http://www.python.org/
If you talking about a simple gui for gnu go it's been done to death.
see any misc. pandanet client and numerous other softwares such as
durish or go knot. If your client is going to do something uniquely
different from programs like this then you should focus in this aspect
of the program and develop other features later. It's also important
that it be able to read and write sgf files
It's uniquely different from numerous other softwares in that it is
completely open source and runs from a standard Python installation (but
of course one has to get a Gnugo executable from somewhere). I also
implemented reading and writing SGF files and browsing through the move
history now.

Total command set at the moment:

-click on a coordinate: generate a move there and go out of replay mode
-space bar: computer makes a move and goes out of replay mode
-up key: save an SGF file (only the moves)
-down key: read an SGF file
-left key: go into replay mode and undo a move
-right key: show next move, if at end goes out of replay mode

Remember we're still only talking about a proof of concept script! I
just want to attract people, and put this script into an SVN somewhere.

Anton
Dec 1 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Martyn Quick | last post by:
On my desk here at work I have a Mac G4 running Mac OS X v10.2.8. When I go into a terminal and type "python" up comes a nice python interface and all seems great. However when I type "import...
3
by: Manish Gupta (BBS) | last post by:
Hello invoking something like following - sock.send(100) generates the following error - TypeError: send() argument 1 must be string or read-only buffer, not int
6
by: Peter Milliken | last post by:
Hi, I (think I have :-)) installed Python on my Pocket PC (obtained from http://fore.validus.com/~kashtan/). There were Tkinter binaries with it so I installed those as well. When I attempt...
47
by: Kenneth McDonald | last post by:
Is there any emerging consensus on the "best" UI for toolkit. Tk never quite made it but from what I can see, both qt and wxWin are both doing fairly well in general. I'm already aware of the...
28
by: H J van Rooyen | last post by:
Hi, I want to write a small system that is transaction based. I want to split the GUI front end data entry away from the file handling and record keeping. Now it seems almost trivially easy...
44
by: jiang.haiyun | last post by:
Now i began to learn GUI programming. There are so many choices of GUI in the python world, wxPython, pyGTK, PyQT, Tkinter, .etc, it's difficult for a novice to decide, however. Can you draw a...
40
by: =?iso-8859-1?B?QW5kcuk=?= | last post by:
I'm really annoyed at Python - and not for the reasons already mentioned on this list. Everyone know that programming is supposed to be a dark art, nearly impossible to learn. Computer code is...
4
by: fabdeb | last post by:
Hi every one, I m a sysadmin who want to know how to use python. I dont know anything about oriented object programation, i only know bash and a little perl. I have some simple questions about...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.