Tyler2004 / pychess

Automatically exported from code.google.com/p/pychess
GNU General Public License v3.0
1 stars 0 forks source link

pychess support for dgtnix #138

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
dgtnix (http://dgtnix.sourceforge.net/index.html) is a open source
community driver for the DGT boards and clocks
(http://www.dgtprojects.com/eboard.htm).

It would be great if pychess could support it.

I am the main developper of dgtnix and I would be glad to help in ités
integration into pychess.

Pierre

Original issue reported on code.google.com by pierre_b...@yahoo.fr on 10 Jan 2007 at 9:46

GoogleCodeExporter commented 9 years ago
I made a mistake in the type of the issue, this is a feature request off course 
:)

Original comment by pierre_b...@yahoo.fr on 10 Jan 2007 at 9:53

GoogleCodeExporter commented 9 years ago
So this is about outputting pychess game to a real world chessboard?
Sound interesting. Would be nice to have.

Original comment by lobais on 10 Jan 2007 at 11:59

GoogleCodeExporter commented 9 years ago
Yes it is exactly that, in addition to the electronic board, there is also an
electronic clock.

The fact is that for the integration, a lot of the work has already been done 
in the
"dgtnix" driver.

Original comment by pierre_b...@yahoo.fr on 12 Jan 2007 at 11:07

GoogleCodeExporter commented 9 years ago
dgtnixVirtualBoard.py is a virtual board for created for testing the dgtnix 
support
without the need to actually posess the board. It is written in python. It is
transparent to the dgtnix driver wether it is connected to a DGT real board or 
to a
dgtnixVirtualBoard.

The initial input to the driver, in the function dgtnixInit(filename) is a 
filename
(COM* or /dev/ttyS0 for example). In the case of the virtual board, the file is
created by dgtnixVirtualBoard.py It's name is the first argument to
dgtnixVirtualBoard.py or /tmp/dgtnixSock by default.

I invite you to try the code :
svn co https://svn.sourceforge.net/svnroot/dgtnix dgtnix
simply compile the library with
make
then run (be sure to have the python interpreter installed)
./dgtnixVirtualBoard
the program then wait for dgtnix driver to connect on /tmp/dgtnixSock

Here are the simple clients included in the subversion tree that can connect to 
the
board :
./dgtnixTest /tmp/dgtnixSock  (c++ version)
./dgtnixTest.py /tmp/dgtnixSock (python version)
./QtWidget/qtwidget (graphic version need qt4.1)

Once connected, you will be able to issue commands in dgtnixVirtualBoard. The 
help is
included in the program and I hope that it will be straightforward.

Messages are transmited to the dgtnix driver, which in turn are be transmitted 
to the
chess GUI (i.e. pychess).

The python bindings for the C library dgtnix are in dgtnix.py

Original comment by pierre.b...@gmail.com on 30 Jan 2007 at 3:59