kcapp / frontend

Dart Scoring application
17 stars 11 forks source link

Added properly undoing a player's visit in a bot leg #140

Closed lluni closed 1 year ago

lluni commented 1 year ago

This PR allows undoing a player's last visit against a bot.

The kcapp-bot dependency hasn't been updated yet as it depends on merging https://github.com/kcapp/bot/pull/8.

The new lines 299, 301 and possibly also 313 are very long, maybe they can be shortened or restructured?

Also, in line 296, is the undo_visit emit needed there? It doesn't seem to do anything, but I've copied it to 312 as well to be safe.