wordbots / wordbots-core

Client-side code for Wordbots, the card game where YOU make the cards.
http://wordbots.io
MIT License
22 stars 4 forks source link

Errors caused by ending too much turn in a row #1915

Open Zergla opened 2 months ago

Zergla commented 2 months ago

https://app.wordbots.io/card/hkxehskawe5 The card make both player pass their turn until a runtime exception occur (1000~1500 turn for each player)

It causes some weird behaviors :

May be too situational to warrant bug fixes, but the last thing may happen in other situation when an error occurs, so maybe a card should be removed from a player hand earlier than it is right now?

Also, it highlights that apparently, both log and "open discard pile" load all their data at once no matter what, which can cause a lot of lag meaning if you somehow have unreasonable quantity of discarded cards or log messages, you can create freeze the game.