#103348: "Better algorithm in order to get less repeats"
Hvad handler denne rapport om?
Hvad skete der? Vær venlig og vælg nedenunder
Hvad skete der? Vær venlig og vælg nedenunder
Vær sød at undersøge, om der allerede er sendt en besked om emnet
Hvis ja, venligst STEM for denne rapport. Rapporter med flest stemmer er dem der får PRIORITET!
# | Status | Votes | Game | Type | Title | Last update |
---|
Detaljeret beskrivelse
• Venligst kopier/indsæt fejlmeddelelsen du ser på din skærm, hvis der er en.
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)• Venligst forklar hvad du ønsker at gøre, hvad du gjorde og hvad der skete
• Hvilken browser bruger du?
Mozilla v5
• Venligst kopier/indsæt tekst vist på engelsk i stedet for dit sprog. Hvis du har et skærmbillede af denne fejl (god øvelse), kan du bruge Imgur.com til at uploade den og kopiere/indsætte linket her.
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)• er der adgang til denne tekst i oversættelsessystem? Hvis ja, er det blevet oversat inden for 24 timer?
• Hvilken browser bruger du?
Mozilla v5
• Forklar venligst dit forslag præcist og sammenfattende, så det er så let som muligt at forstå, hvad du mener.
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)• Hvilken browser bruger du?
Mozilla v5
• Hvad blev der vist på skærmen, da du blev blokeret (Blank skærm? Noget af spilbrugerfladen? Fejlmeddelelse?)
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)• Hvilken browser bruger du?
Mozilla v5
• Hvilken del af reglerne blev ikke respekteret ved BGA-tilpasningen
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)• Er regel-brudddet synligt i e
• Hvilken browser bruger du?
Mozilla v5
• Hvad var den spilhandling du ønskede at udføre?
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)• Hvad forsøgte du at gøre for at udløse denne spilhandling?
• Hvad skete der, da du forsøgre at gøre dette (fejlmeddelelse, meddelelsesstatusbjælke, ...)?
• Hvilken browser bruger du?
Mozilla v5
• I hvilket stadie af spillet opstod problemet (hvad var den daværende spilinstruktion)?
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)• Hvad skete der, da du forsøgte at udføre denne spilhandling (fejlmeddelelse, meddelelsesstatusbjælke, ...)?
• Hvilken browser bruger du?
Mozilla v5
• Venligst beskriv display problemet. Hvis du har et skærmbillede af denne fejl (god øvelse), kan du bruge Imgur.com til at uploade den og kopiere/indsætte linket her.
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)• Hvilken browser bruger du?
Mozilla v5
• Venligst kopier/indsæt tekst vist på engelsk i stedet for dit sprog. Hvis du har et skærmbillede af denne fejl (god øvelse), kan du bruge Imgur.com til at uploade den og kopiere/indsætte linket her.
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)• er der adgang til denne tekst i oversættelsessystem? Hvis ja, er det blevet oversat inden for 24 timer?
• Hvilken browser bruger du?
Mozilla v5
• Forklar venligst dit forslag præcist og sammenfattende, så det er så let som muligt at forstå, hvad du mener.
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)• Hvilken browser bruger du?
Mozilla v5
Rapporthistorik
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? :)
Tilføj noget til denne rapport
- Et andet bord-ID / træk ID
- Løste F5 problemet?
- Skete problemet flere gange? Hver gang? Tilfældigt?
- Hvis du har et skærmbillede af denne fejl (god øvelse), kan du bruge Imgur.com til at uploade den og kopiere/indsætte linket her.