billthefarmer / gurgle

Fairly simple android word game
https://billthefarmer.github.io/gurgle/
GNU General Public License v3.0
56 stars 18 forks source link

Sharing a code doesn't work as expected #73

Closed nach0 closed 1 year ago

nach0 commented 1 year ago

I and a friend just installed Gurgle yesterday (both on Version 1.26), great simple and entertaining game! However, we tried sharing a code several times and we never get the same word the initial user had.

One of us starts a game, taps on the share icon, selects "Code", copies the code (i.e. MTY5ODQzNTU2Mjc3MA==) and sends it to the other one. The other person taps the three dot menu, Get Code, Code and inserts that code, then refreshes the game. The word the second person gets is not the same as the first one was playing.

After several attempts we decided to try something else: we both started fresh games and used one of the codes we had generated earlier. We both introduced the code and refreshed the game, now we both her the same word. The following game also had the same word...

Is the code setting a "starting point" in the word list for the game to start at? We expected that when player 1 shared their code, player 2 would get the same word that player 1 was currently playing, but that didn't happen. How is this code sharing really working?

billthefarmer commented 1 year ago

When you share a code the app generates a new code for a new sequence of words. It can't use the current one because it is discarded and you may have attempted a few words, so it wouldn't be valid. So both copies of the app must use the refresh button after sharing and receiving a code. See Code and Get code in the app help, README.