473,804 Members | 3,113 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1368
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
6987
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 Tkinter" I'm greeted by the following error. >>> import Tkinter Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/lib/python2.2/lib-tk/Tkinter.py", line 35, in ?
3
18530
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
2449
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 to run the most simplistic of python programs using Tkinter, I get an error message stating that Python can't find any tkinter module. Any ideas what I have done wrong anybody?
47
3488
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 licensing issues surrounding qt (fwiw, I think their license fee for commercial use is eminently reasonable), so aside from that, I was wondering if there was any feedback readers could provide on the following: 1) Which plays best with Python?...
28
2645
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 using the sockets module to communicate between machines on the same LAN, so that I want to do the record keeping on one machine.
44
3713
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 comparison among them on easy coding, pythonish design, beautiful and generous looking, powerful development toolkit, and sufficient documentation, .etc. It's helpful for a GUI beginner. Thank you.
40
2752
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 supposed to be something impossible to read to the common person and yet reveal their secrets to the initiated - just remember the code displayed in the Matrix... Python takes all of that away. It is just too readable. Even beginners can...
4
2002
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 python. the first: what is the differences between a function and a classe? In which case i should use a function ? In which case i should use a class ?
0
9706
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9579
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10332
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10321
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9152
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5522
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3820
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2991
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.