matag-the-game icon indicating copy to clipboard operation
matag-the-game copied to clipboard

Add "Undo" button

Open allentiak opened this issue 5 years ago • 2 comments

This could also help with debugging, as it would provide with an extra tool to confirm (possibly incorrect) behaviors.

allentiak avatar Apr 22 '20 11:04 allentiak

That's a tricky one.

If we ever implement and undo button then it should trigger a "please undo" message on the opponent screen. If the opponent is nice enough can let undo, if not user cannot just undo actions. (kind of take back functionality implemented in lichess).

An undo button I don't think it's useful for debugging. Ultimately the only debugging info will be logs (which we have a bit lack as we don't pay for the heroku machines.) Furthermore we don't have any javascript logging reported to our servers.

I'm happy to keep this story as just create an undo button that will undo if opponent accepts. (will keep as lower priority)

antonioalonzi avatar Apr 22 '20 18:04 antonioalonzi

On Wed, 22 Apr 2020 at 15:22, antonioalonzi85 [email protected] wrote:

I'm happy to keep this story as just create an undo button that will undo if opponent accepts. (will keep as lower priority)

Cool. This will also be specially useful if/when an AI gets added.

Magarena implements this quite smoothly. XMage as well.

I strongly suggest you invest some time playing with them... I am sure you will also find other cool features that could be implemented here. (Most likely in a better way, though ;-).

allentiak avatar Apr 22 '20 23:04 allentiak