Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display not in sync with game/board after few takebacks #165

Open
jottojott opened this issue Oct 19, 2024 · 13 comments
Open

Display not in sync with game/board after few takebacks #165

jottojott opened this issue Oct 19, 2024 · 13 comments

Comments

@jottojott
Copy link

Hello!
I often play games against an engine on my DGT Pegasus with the tutor active. After a number of takebacks following the tutor's advice, LucasChess' display shows a wrong board. The game itself however is still correct and can be played properly on the DGT despite a totally wrong board on the display. For example in my last game the position shown on LucasChess' board was wrong and the engines queen was displayed as a rook (however moved correctly).
This occurs sooner or later in every game after a number of takebacks, and it does so since a number of releases (as long as I use my Pegasus). I use LucasChess on an up to date LDME6.

@lukasmonk
Copy link
Owner

I have found a problem, that by default all the boards have a connection to the eboard, also the ones shown by the tutor, and that is the reason for the disconfiguration.
I have removed this default connection.
If you want to try I can send you a link to the current development version, portable or installable on Windows or Linux.

@jottojott
Copy link
Author

Yes please!
The Linux version please.

@jottojott
Copy link
Author

I ran that file, and the console it stated that it ran successfully. However, I do not know what it actually did ;-) But I think it found the installation of LucasChess and updated it: Running LucasChess it says "version R 2.16a". With that version, the bug still exists. In the included pictures you find the black c-pawn isn't displayed at the correct position and has an arrow into the wrong direction.
LC216a

@lukasmonk
Copy link
Owner

@jottojott
Copy link
Author

Ah, yes: Installed properly, and the correct version is display in LucasChess! However: Board and display are still not in sync (look at the pawns in the center). Here I first played Nf3xd4, which the tutor regarded as the 2. best move (best was Nd5). Taking back this move led to this display.
Btw: Later in that game I tried to take back another move in which I took another piece which led to the situation that EVERYTHING was out of sync: I could not get a valid position on the board. This is most likely caused by me as I probably are not doing these takebacks in a proper order. This does happen quite some time, and the game then cannot be continued. At this point a button to "check position on board" would be helpful. The function already exist: When I look a the move the tutor suggests and then accept it, the DGT Pegasus Control window pops up to let med do this (Pic 2). Would be perfect to have to ability to manually evoke that.
20241025_115607
grafik

@lukasmonk
Copy link
Owner

I have not been able to replicate the problem.
I would need you to give me a very concrete sequence of moves where the problem occurs, indicating at the same time what you do on the eboard.

@jottojott
Copy link
Author

Ok, so here we go: I played again Maia-1300 and made poor moves to provoke the tutor, and right after 2 moves this happend (I played white):

  1. e4 e5
  2. Nf3 Nh6
  3. Bd4 now made the tutor pop up. I clicked on "There are 2 better moves" to make it disappear and began the procedure to take back my move: I put the bishop back to f1. The DGT Pegasus confirmed with its lights on the board, and LucasChess was in sync. Then the DGT highlighted the last black move, which was Ng8 - Nh6. By continuing with this procedure one can back as many moves as desired. To stop taking back moves, one is required to just lift the next piece and put it back, so I lifted the Knight on h6 and put it back right there. Here the display went out of sync, as LucasChess now displayed the Knight back at g8 (photo).
    Hope this helps! If you need more of these situations, let me know!
    lucaschess-dgtpeg

@lukasmonk
Copy link
Owner

Do not up/touch/move the knight on h6.
After having clicked on "There are 2 better moves", the process continues with moving the bishop to f1 and then making a new white move.

@jottojott
Copy link
Author

Sorry to say, but that makes no difference :-/
In the game shown in the picture I had the black pieces, and after 1. e4 e5 2. Nc3 Nc6 and 3. f4 I played g5 (and other poor moves) and after the tutor popped up I acted exactly like you told me: Immediately after take back my rook the board flashed the fields f2 and f4, and the LucasChess displayed the white rook back on f2 with the arrow as shown in the picture. Yes, I can carry on playing the way you told (thank you for that anyway, that saves me some time!), but the display stayed like that. The wrong pawn remains on f2 even after I made the correct move exd4 and the engine's answer Nf3.
lc216a6

@lukasmonk
Copy link
Owner

Ok. Replicated with the same problem.
You could test a new Board.py file:
Board.zip
You would have to go in a terminal to the folder lucaschessR/bin/Code/Board
And rename Board.pyc to Board.pyc.old (if the new one goes wrong for some reason, to go backwards)
Then uncompress Board.zip, and copy Board.py on that folder.

@jottojott
Copy link
Author

Voila: This seems to work fine! I made a lot a poor moves, and even "moving mistakes" (like "forgetting" to set the engine's move, or putting the engine's move to a wrong field), and with your way of taking back moves board and display stayed in sync!

@lukasmonk
Copy link
Owner

Great, thanks.

There is still a lot of work to be done to make everything perfect, I will keep working.

@jottojott
Copy link
Author

Thank YOU for providing us with that great software!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants