lichess-org / lichobile

lichess.org mobile application

Home Page:https://lichess.org/mobile

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Analysis Board goes to incorrect move for games started from a position

macacollins opened this issue · comments

What happened?

Analysis board goes to an incorrect move from games started from a position

How can we reproduce the bug?

  1. Go to Analysis Board
  2. Play some moves
  3. Press bottom left menu icon (four lines)
  4. Press "Continue from here"
  5. Press "Computer"
  6. Press "Play"
  7. Play some moves
  8. Press analysis button (microscope icon)
  9. Observe that the analysis board shows the game from a few moves previous

Expected behavior

Analysis board goes to current game state

Device

iPhone SE

Operating system

iOS 16.6.1

App version

v8.0.0

Screenshots

RPReplay_Final1700083296.mp4

Additional context

The number of moves back that the analysis board shows is the same number of moves played on the analysis board before starting the game--if two moves were played, the analysis board will be two moves behind. There is likely a move count somewhere that needs its logic updated.