lukasmonk / lucaschessR2

Lucas Chess R Version 2
GNU General Public License v3.0
255 stars 36 forks source link

Piece drag on board rejected if variant exist #138

Closed Lingepumpe closed 2 months ago

Lingepumpe commented 3 months ago

When analysing my games, sometimes I use "Utilitities->Analysis" to look at each move for X seconds. Then I go through the game move by move (usually with a kibitzer running as well, but irrelevant to the report). When I am in some position P of the game, there is the move that was played in the game M, and the 3 top moves according to the engine M1, M2, M3 as "Variants".

If I drag a piece to make a move in the position P, it will not work if the move is M1 or M2 (except if it is M). It works for M3, it works for "new" moves for which no variants exist, and it works for M, but if it is variant move that is not the move of the "last" variant (M3), then it will ignore my move and instead play the first move of the last variant: M3.

Tested with R 2.12d, but existed also in previous versions. Also works with "manually created" variations.

Short reproduction:

lukasmonk commented 3 months ago

Fixed.