lichess.org
Donate

Play on Lichess using a DGT board

i wonder if everyone likes it......................................................................
Thx for making it possible to use the DGT-Board.

But: the explanation is awful. I dont need music in the background, the english is much too perfect (lazy) for me and it is not explained systematicly.
I only buy a chessboard whose chess pieces are that of BCE or Best Chessmen Ever product. But too bad, it is only for sale in Slovenia. It is not anywhere else. But I really crave to buy this BCE chess pieces.
@andrescavallin

Hi, this was really cool. I am looking into something similar myself, with my (android) phone. Carrying a computer around with the board gets old real quick. I got the bluetooth connection setup and am reading the piece movements and clock events correctly.

However, as others pointed out, moving your opponents pieces is awkward. My goal is to play against my friends using my board (once covid ends, i guess) and relay both player's moves to lichess using the Board API, through my phone. Side note: There wouldn't really be a need for all of this if we could play on DGT, get PGN, upload PGN and have that game as part of our lichess play history. I can upload PGN as of now, but our head-to-head score on lichess would not be updated. It is also more cumbersome for my opponent to find the game later if I upload it.

So I'd like to ask for your thoughts. This is where the project came to a halt. Authentication of two users and the board API. I could maybe have my app support websockets and point dgt/config to my phone, but it seems a bit awkward. What would the message format be? Could my app/phone initiate the connection? Having both players input their api-keys into an app is also very cumbersome. I have some issues with OAuth through phone also (no PKCE-support), but that is another issue.

So, since you have so much knowledge of both DGT and LiChess, is there any hope for a smooth phone based dgt/lichess connection? Would you say it is technically possible today?

Again, a very good job you've done here! Impressive stuff.

(Also, to get perfect setup and have DGT be master it would be great if the Board-API could write the clock status, so that the physical clock connected to the DGT-board is master. This only makes sense for local play, however.)
@jeffreyashton

The DGT-board is a little wonky, yes.

It may help you if you know how it works, at least it did for me. The board checks the squares one by one, over and over. It takes about 200-250ms to do a full scan. Depending on where the scan is, and how you move a piece and how fast, you can get pretty unintuitive states from the board. This includes the same piece being on two squares, or disappearing completely before coming back. The board only sends the current status as it sees it. It does not know who's turn it is or anything.

The livechess software (or the DGT drivers you install on your pc) must translate the board states and try to figure out what happened. The default behaviour is that if there is a change followed by no more changes for 400ms, the software determines that a move has been made and it is the opponent's move. If you play with low-level people (like me and my friends) this can result in "but I was still touching the piece! I haven't made my move, you stupid computer" and the computer and you disagree on how the game really went. This can be rectified during the game as you say but that seriously breaks the immersion.

This situation is easier if you have a clock connected to the board. Then the software can use whatever the board looked like when the clock was punched as the player's move. (It must see what the board state was before you did anything, see what it is now, calculate the difference and translate that difference again into PGN or call an illegal move).

You are right in that carrying a computer around with the board dampens the fun, along with asking everyone to wait until you setup everything. Your friends could play multiple times before you even finish booting the computer. For Android there are two apps you can use instead, but they do not offer everything livechess does.
One of the problems that I see is that one can move a piece unintentionally, even if it is because something fell on the board, and you lost the game. And you can't play games if you have little time either, since on top of having to move your own pieces on the board, you have to move your opponent's pieces !!
For my part, I would not play any blitz or faster.
You can't make a pre-move either.
@andreibari Yes, you're right: it's simply unpractical to play with fast time time control on lichess thru a DGT board, and in fact is not supported. If you try to so the plugin gives an error in the log windows. It is well described in the plugin author's video (see the beginning of this thread to find the link).
About the premove: you won't premove in a OTB tourney with a physical board too, will you? :-)

This topic has been archived and can no longer be replied to.