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

Feature: Enable history traversal #6

Open
Tohaker opened this issue Jul 3, 2021 · 0 comments
Open

Feature: Enable history traversal #6

Tohaker opened this issue Jul 3, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@Tohaker
Copy link
Contributor

Tohaker commented Jul 3, 2021

The existing data structure for a channel contains a history array, with all the previous map UUIDs.
These UUIDs are sorted latest to the earliest, meaning the ID at index 0 is the most recent, and the ID at index n was created the longest time ago.
It should be possible for a user to not only recall the entire history but also reset the game state back by x number of turns.


Command ideas:

  • /map history returns all maps in the history array, in their existing order. Each map should be numbered.
  • /map history turns:5 returns the last 5 maps in the array. If fewer maps exist, just return those.
  • /map history rewind:3 "rewinds" the game by 3 turns permanently overwriting the game. If possible, a warning before this is executed should be provided.
@Tohaker Tohaker added enhancement New feature or request and removed hacktoberfest labels Jan 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant