benckx / elephantchess.io

Play and study Chinese chess online
https://elephantchess.io
3 stars 0 forks source link

Elo transfer bug #142

Closed benckx closed 3 months ago

benckx commented 3 months ago

Looks like 16 points have been transferred instead of 8? has Elo transfer happened twice?

https://elephantchess.io/game?id=Bx9FM9g4bZL1

benckx commented 3 months ago

I looks like the flag logic had happened twice. I added checks to ensure it doesn't happen (i.e. that the flag logic is idem potent).