Skip to content
Snippets Groups Projects
Commit fcf5bf06 authored by marcus's avatar marcus
Browse files

Goes to waitinglobbyView if timer is finished. Time is displayed as int instead of float.

parent d9de1d72
No related branches found
No related tags found
1 merge request!22Resolve "Create game model"
......@@ -354,7 +354,8 @@ public class AndroidInterfaceClass implements FirebaseInterface {
if (!words.isEmpty()) {
long seed = generateSeedFromPin(pin);
Collections.shuffle(words, new Random(seed));
String selectedWord = words.get(0);
String selectedWord = words.get(new Random().nextInt(words.size()));
callback.onWordFetched(selectedWord);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment