pacosako icon indicating copy to clipboard operation
pacosako copied to clipboard

Client side move generation leads to weird reconciliation animations

Open kreibaum opened this issue 11 months ago • 2 comments

If you move fast, then the server can send a previous state, leading to a repeat animation.

I think the following happens:

Client sends A Client sends B (possible with client side move generation) Server sends original state + A Clients rolls back Server sends original + A + B Client goes back to that state.

But we still want Rollbacks to work. To probably there must be some kind of Rollback flag.

kreibaum avatar Mar 08 '24 21:03 kreibaum

Turns out this is super important, because it happens all the time when I have an AI running in the browser. Best to reproduce on a smartphone connected to the local dev environment.

kreibaum avatar May 05 '24 20:05 kreibaum

This broke playing and I rolled it back with 0a920f0db6c000ec4ebce6fb357d25fb06d7f946

kreibaum avatar May 09 '24 19:05 kreibaum

This time it actually worked and was an important ingredient in getting Hedwig to play online. The last commit actually closed this issue.

kreibaum avatar Jun 11 '24 20:06 kreibaum