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

Use snapshots for undo #124

Closed
wants to merge 3 commits into from

Conversation

frank-weinberg
Copy link
Contributor

Whenever one of the clock control buttons is pressed (Start Jam, Stop
Jam/TO, Timeout), a snapshot of the scoreboard state is taken. On undo
the last snapshot is restored and the running clocks are advanced by the
time that has passed since the snapshot was taken.
Un-Start, Un-Stop and Un-Timeout are wrappers for the general undo
function that check if the current snapshot is of the approriate type
and do nothing if it isn't.

This prepares the backend for a single undo button but doesn't add it to
the front end. The latter is planned as an option, after we have a
better way of handling operator settings than a long row of buttons.

These tests verify the behaviour of the game state as displayed on the main
scoreboard (except Jammer names).

Not included:
- Undo. This will be added together with the switch to a snapshot model
in a separate PR.
- Game Statistics (Penalties, Lineups)
- Settings other than WFTDA sanctioned (with a few exceptions).
Whenever one of the clock control buttons is pressed (Start Jam, Stop
Jam/TO, Timeout), a snapshot of the scoreboard state is taken. On undo
the last snapshot is restored and the running clocks are advanced by the
time that has passed since the snapshot was taken.
Un-Start, Un-Stop and Un-Timeout are wrappers for the general undo
function that check if the current snapshot is of the approriate type
and do nothing if it isn't.

This prepares the backend for a single undo button but doesn't add it to
the frontend. The latter is planned as an option, after we have a
better way of handling operator settings than a long row of buttons.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant