#103348: "Better algorithm in order to get less repeats"
Quel est le sujet de ce rapport ?
Que s'est-il passé ? Merci de choisir ci-dessous
Que s'est-il passé ? Merci de choisir ci-dessous
Veuillez vérifier s'il existe déjà un rapport sur le même sujet
Si oui, veuillez VOTER pour ce rapport. Les rapports ayant le plus de votes auront la PRIORITÉ !
| # | Status | Votes | Game | Type | Title | Last update |
|---|
Description détaillée
-
• Merci de copier-coller le message d'erreur qui s'affiche à l'écran, s'il y a lieu.
As discussed here: boardgamearena.com/forum/viewtopic.php?t=27740&start=30
Possible solutions:
a) Algorithm 1 (13 distinct cards out of 110 are chosen randomly and for each chosen card 1 word out of 5 is chosen randomly)
or
b) Algorithm 2 (13 distinct words out of 550 are chosen randomly)
or
c) Give players the opportunity to choose 1 out of 5 words (as in the physical game) -
• Veuillez expliquer ce que vous vouliez faire, ce que vous avez fait et ce qu'il s'est passé
• Quel est votre navigateur ?
Mozilla v5
-
• SVP copiez / collez ici le texte affiché en anglais au lieu de votre langue. Si vous disposez d'une impression écran du bug (bonne pratique), vous pouvez utiliser le service d'hébergement de votre choix (snipboard.io par exemple) pour l'uploader et copier/coller le lien ici. Ce texte est-il disponible dans le système de traduction ? Si oui, a-t-il été traduit depuis plus de 24 heures ?
As discussed here: boardgamearena.com/forum/viewtopic.php?t=27740&start=30
Possible solutions:
a) Algorithm 1 (13 distinct cards out of 110 are chosen randomly and for each chosen card 1 word out of 5 is chosen randomly)
or
b) Algorithm 2 (13 distinct words out of 550 are chosen randomly)
or
c) Give players the opportunity to choose 1 out of 5 words (as in the physical game) • Quel est votre navigateur ?
Mozilla v5
-
• Merci d'expliquer votre suggestion de manière précise et concise, de façon à ce qu'il soit aussi simple que possible de comprendre ce que vous voulez dire.
As discussed here: boardgamearena.com/forum/viewtopic.php?t=27740&start=30
Possible solutions:
a) Algorithm 1 (13 distinct cards out of 110 are chosen randomly and for each chosen card 1 word out of 5 is chosen randomly)
or
b) Algorithm 2 (13 distinct words out of 550 are chosen randomly)
or
c) Give players the opportunity to choose 1 out of 5 words (as in the physical game) • Quel est votre navigateur ?
Mozilla v5
-
• Qu'affichait l'écran lorsque vous avez été bloqué(e) (Un écran vierge ? Une partie de l'interface du jeu ? Un message d'erreur ?)
As discussed here: boardgamearena.com/forum/viewtopic.php?t=27740&start=30
Possible solutions:
a) Algorithm 1 (13 distinct cards out of 110 are chosen randomly and for each chosen card 1 word out of 5 is chosen randomly)
or
b) Algorithm 2 (13 distinct words out of 550 are chosen randomly)
or
c) Give players the opportunity to choose 1 out of 5 words (as in the physical game) • Quel est votre navigateur ?
Mozilla v5
-
• Quelle partie des règles n'a pas été respectée par l'adaptation BGA ?
As discussed here: boardgamearena.com/forum/viewtopic.php?t=27740&start=30
Possible solutions:
a) Algorithm 1 (13 distinct cards out of 110 are chosen randomly and for each chosen card 1 word out of 5 is chosen randomly)
or
b) Algorithm 2 (13 distinct words out of 550 are chosen randomly)
or
c) Give players the opportunity to choose 1 out of 5 words (as in the physical game) -
• La violation de règle est-elle visible dans le replay de la partie ? Si oui, à quel numéro de coup ?
• Quel est votre navigateur ?
Mozilla v5
-
• Quelle action de jeu vouliez-vous faire ?
As discussed here: boardgamearena.com/forum/viewtopic.php?t=27740&start=30
Possible solutions:
a) Algorithm 1 (13 distinct cards out of 110 are chosen randomly and for each chosen card 1 word out of 5 is chosen randomly)
or
b) Algorithm 2 (13 distinct words out of 550 are chosen randomly)
or
c) Give players the opportunity to choose 1 out of 5 words (as in the physical game) -
• Qu'avez-vous essayé de faire pour déclencher cette action de jeu ?
-
• Que s'est-il passé lorsque vous avez essayé de faire cela (message d'erreur, message dans la barre d'état du jeu...) ?
• Quel est votre navigateur ?
Mozilla v5
-
• À quelle étape de la partie le problème est-il apparu ? Quelles instructions le jeu affichait-il ?
As discussed here: boardgamearena.com/forum/viewtopic.php?t=27740&start=30
Possible solutions:
a) Algorithm 1 (13 distinct cards out of 110 are chosen randomly and for each chosen card 1 word out of 5 is chosen randomly)
or
b) Algorithm 2 (13 distinct words out of 550 are chosen randomly)
or
c) Give players the opportunity to choose 1 out of 5 words (as in the physical game) -
• Que s'est-il passé lorsque vous avez essayé de faire cette action de jeu (message d'erreur, message dans la barre d'état du jeu...) ?
• Quel est votre navigateur ?
Mozilla v5
-
• Veuillez décrire le problème d'affichage. Si vous disposez d'une impression écran du bug (bonne pratique), vous pouvez utiliser le service d'hébergement de votre choix (snipboard.io par exemple) pour l'uploader et copier/coller le lien ici.
As discussed here: boardgamearena.com/forum/viewtopic.php?t=27740&start=30
Possible solutions:
a) Algorithm 1 (13 distinct cards out of 110 are chosen randomly and for each chosen card 1 word out of 5 is chosen randomly)
or
b) Algorithm 2 (13 distinct words out of 550 are chosen randomly)
or
c) Give players the opportunity to choose 1 out of 5 words (as in the physical game) • Quel est votre navigateur ?
Mozilla v5
-
• SVP copiez / collez ici le texte affiché en anglais au lieu de votre langue. Si vous disposez d'une impression écran du bug (bonne pratique), vous pouvez utiliser le service d'hébergement de votre choix (snipboard.io par exemple) pour l'uploader et copier/coller le lien ici. Ce texte est-il disponible dans le système de traduction ? Si oui, a-t-il été traduit depuis plus de 24 heures ?
As discussed here: boardgamearena.com/forum/viewtopic.php?t=27740&start=30
Possible solutions:
a) Algorithm 1 (13 distinct cards out of 110 are chosen randomly and for each chosen card 1 word out of 5 is chosen randomly)
or
b) Algorithm 2 (13 distinct words out of 550 are chosen randomly)
or
c) Give players the opportunity to choose 1 out of 5 words (as in the physical game) • Quel est votre navigateur ?
Mozilla v5
-
• Merci d'expliquer votre suggestion de manière précise et concise, de façon à ce qu'il soit aussi simple que possible de comprendre ce que vous voulez dire.
As discussed here: boardgamearena.com/forum/viewtopic.php?t=27740&start=30
Possible solutions:
a) Algorithm 1 (13 distinct cards out of 110 are chosen randomly and for each chosen card 1 word out of 5 is chosen randomly)
or
b) Algorithm 2 (13 distinct words out of 550 are chosen randomly)
or
c) Give players the opportunity to choose 1 out of 5 words (as in the physical game) • Quel est votre navigateur ?
Mozilla v5
Historique du rapport de bug
Sorry for that but I'm not ready to invest my time in Just One anymore
So for example, if $wordID is 1, it would take the first word for every 13 card?
That would be like 5 options for the card index combinations.
I guess the fix would be to use a different word index for every of the 13 cards. that would be like 5^13 = 1.220.703.125 options.
So, you would have to recalculate the wordID for each card, instead of computing it once on game start. Seems to be a pretty trivial change, isn't it?
If you would share code I could take a look at that.
I don't have an idea why this algo would be biased towards specific words. I guess that either your card shuffling or the index selection is flawed. Are you using random_int(4) for that wordID? And how do you shuffle cards?
We are forced to use bga_rand() and I'm using it.
However for cardIds I create an array from 0 to 549, use PHP shuffle() method and take first 13 or first 550 depending on a game option.
Consider two different games.
Assume you drew [b]two[/b] equal [b]cards[/b] in both games.
The propability that [b]both[/b] cards have the same word (two repetitions) is:
- 20 % in your variant (you have to select the same index in the second game as in the first, and both words will repeat)
- 4 % in the variant with indices per card (as you select a different index for each card).
If you have 3 same cards, it's always 20% in your variant, and 0.8% in the index-per-card-variant.
I guess that would just feel more random to players. If you have one repetition, you don't notice it. If you have [b]two[/b] repetitions, you might notice it.
So, could you pretty please change it? :)
Game 1) with 4 players,
Game 2) new game with a 5th player joined
Game 3) rematch of game 2 with the same players.
In the 3rd game, we had 3 words that we already had in the first game.
@Dorian Gray2 or @Mr Karotte, did you have a chance to look at the code?
I would vote for option C: let the players pick one of the 5 words on the card - but this is probably the most complex change, as the game is developed with individual words, not with cards, isn't it? Or why would there be 500 cardIds (and not 110?) as mentioned here: "However for cardIds I create an array from 0 to 549, use PHP shuffle() method and take first 13 or first 550 depending on a game option."
Ajouter à ce rapport
- Un autre n° de table / n° de coup
- Appuyer sur F5 a-t-il résolu le problème ?
- Le problème est-il apparu plusieurs fois ? À chaque fois ? Aléatoirement ?
- Si vous disposez d'une impression écran du bug (bonne pratique), vous pouvez utiliser le service d'hébergement de votre choix (snipboard.io par exemple) pour l'uploader et copier/coller le lien ici.
