Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to undo #14

Open
dkniffin opened this issue Feb 6, 2017 · 0 comments
Open

Ability to undo #14

dkniffin opened this issue Feb 6, 2017 · 0 comments

Comments

@dkniffin
Copy link
Owner

dkniffin commented Feb 6, 2017

This should be relatively easy. I think redux has something built in for stepping back one state. Things might be complicated by the fact that we have multiple events dispatched from one event. We don't want to undo to those intermediate states. For example, when we discard from hand, we send one event to remove from hand, and another to add to graveyard. We don't want to just remove from graveyard, and not put it back in hand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant