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

Recreate a game through hash #501

Open
im7mortal opened this issue Feb 11, 2024 · 1 comment
Open

Recreate a game through hash #501

im7mortal opened this issue Feb 11, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@im7mortal
Copy link

im7mortal commented Feb 11, 2024

Is your feature request related to a problem? Please describe.
I would like to have a hash which would be possible to use to generate identical game.

Sometimes I find a gem which I like a replay or send to somebody else.

Describe the solution you'd like

When game generated, it prints a hash under metadata button. For example 9:9:30:3:7:df54fycdg5... where
'9:9' is size
'30' number of mines
'3:7' start tile coordinate
After base64 of minemap.

It also could be any other format.

Additional context

  1. I think it would be great for debuging also.
  2. It also would be good way to keep history of games. I know that there is the history tab

Obrigado!

@im7mortal im7mortal added the enhancement New feature or request label Feb 11, 2024
@lucasnlm
Copy link
Owner

lucasnlm commented Feb 12, 2024

Thanks for your suggestion! ❤️
Next version will have a way to do that. Every game will generate a unique hash like 1KCBS6I2X:163H that can be used to start the same game using this new entry:


It will also be possible to share the game (including a picture) after complete a game.

Screenshot 2024-02-12 at 3 57 36 PM

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

2 participants