lucasnlm/antimine-android

Recreate a game through hash

Opened this issue · 1 comments

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!

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