pychess support for dgtnix
Original issue 138 reported by [email protected] 2007-01-10
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 comment 1. posted by [email protected] 2007-01-10
I made a mistake in the type of the issue, this is a feature request off course :)
Original comment 2. posted by lobais 2007-01-10
So this is about outputting pychess game to a real world chessboard? Sound interesting. Would be nice to have.
- changed status to: Accepted
- removed label: Defect
- removed label: Medium
- added label: Enhancement
- added label: Low
Original comment 3. posted by [email protected] 2007-01-12
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 4. posted by pierre.boulenguez 2007-01-30
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