#103348: "Better algorithm in order to get less repeats"
What is this report about?
What happened? Please select from below
What happened? Please select from below
Please check if there is already a report on the same subject
If yes, please VOTE for this report. Reports with the most votes are given PRIORITY!
# | Status | Votes | Game | Type | Title | Last update |
---|
Detailed description
• Please copy/paste the error message you see on your screen, if applicable.
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)• Please explain what you wanted to do, what you did and what happened
• Which browser are you using?
Mozilla v5
• Please copy/paste the text displayed in English instead of your language. If you have a screenshot of this bug (good practice), you can use Imgur.com to upload it and copy/paste the link here.
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)• Is this text available in the translation system? If yes, has it been translated for more than 24 hours?
• Which browser are you using?
Mozilla v5
• Please explain your suggestion precisely and concisely so that it's as easy as possible to understand what you mean.
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)• Which browser are you using?
Mozilla v5
• What was displayed on the screen when you were blocked (Blank screen? Part of the game interface? Error message?)
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)• Which browser are you using?
Mozilla v5
• Which part of the rules was not followed by the BGA adaptation
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)• Is the rules violation visible on game replay? If yes, at which move number?
• Which browser are you using?
Mozilla v5
• What was the game action you wanted to do?
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)• What did you try to do to trigger this game action?
• What happened when you tried to do this (error message, game status bar message, ...)?
• Which browser are you using?
Mozilla v5
• At which step of the game did the problem occur (what was the current game instruction)?
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)• What happened when you tried to do this game action (error message, game status bar message, ...)?
• Which browser are you using?
Mozilla v5
• Please describe the display issue. If you have a screenshot of this bug (good practice), you can use Imgur.com to upload it and copy/paste the link here.
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)• Which browser are you using?
Mozilla v5
• Please copy/paste the text displayed in English instead of your language. If you have a screenshot of this bug (good practice), you can use Imgur.com to upload it and copy/paste the link here.
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)• Is this text available in the translation system? If yes, has it been translated for more than 24 hours?
• Which browser are you using?
Mozilla v5
• Please explain your suggestion precisely and concisely so that it's as easy as possible to understand what you mean.
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)• Which browser are you using?
Mozilla v5
Report history
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? :)
Add to this report
- Another table ID / move ID
- Did F5 solve the problem?
- Did the problem appear several times? Every time? Randomly?
- If you have a screenshot of this bug (good practice), you can use Imgur.com to upload it and copy/paste the link here.