#103348: "Better algorithm in order to get less repeats"
Apie ką šis pranešimas?
Kas nutiko? Pasirinkite iš žemiau esančio sąrašo
Kas nutiko? Pasirinkite iš žemiau esančio sąrašo
Patikrinkite, ar jau yra pranešimas apie tą patį dalyką
Jei taip, balsuokite už šią ataskaitą. Ataskaitos su dauguma balsų pateikiamos PRIORITETU!
# | Status | Votes | Game | Type | Title | Last update |
---|
Detalus apibūdinimas
• Jei ekrane matote kokį nors klaidos pranešimą, įklijuokite jį čia.
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)• Prašome paaiškinti, ką norėjote padaryti, ką padarėte ir kas atsitiko
• Kokia tavo naršyklė?
Mozilla v5
• Prašome nukopijuoti / įklijuoti tekstą, rodomą anglų kalba, o ne savo kalba. Jei turite klaidos nuotrauką (rekomenduojama padaryti), galite panaudoti Imgur.com bei nuotrauką įkelti bei čia įklijuoti nuorodą.
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)• Ar šis tekstas yra translation system? Jei taip, ar jis buvo išverstas daugiau nei 24 valandas?
• Kokia tavo naršyklė?
Mozilla v5
• Prašome paaiškinti siūlomą pakeitimą tiksliai ir glaustai, kad būtų kuo lengviau suprasti, ką jūs siūlote.
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)• Kokia tavo naršyklė?
Mozilla v5
• Kas buvo pavaizduota ekrane, tave užblokavus (juodas ekranas? Nepilna žaidimo sąsaja? Klaidos pranešimas?)
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)• Kokia tavo naršyklė?
Mozilla v5
• Į kurias taisykles neatsižvelgiama BGA žaidimo versijoje
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)• Ar taisyklių pažeidimas matomas žaidimo atkartojime? Jeigu taip, kuris veiksmo numeris?
• Kokia tavo naršyklė?
Mozilla v5
• Kurį žaidimo veiksmą norėjai atlikti?
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)• Ką reikia padaryti, kad iššauktum šį žaidimo veiksmą?
• Kas įvyko kai bandei tai padaryti (klaidos pranešimas, žaidimo būsenos pranešimas, ...)?
• Kokia tavo naršyklė?
Mozilla v5
• Kuriuo žaidimo metu problema atsirado (koks buvo tuometinis žaidimo nurodymas)?
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)• Kas įvyko kai bandei atlikti žaidimo veiksmą (klaidos pranešimas, žaidimo būsenos pranešimas, ...)?
• Kokia tavo naršyklė?
Mozilla v5
• Aprašykite rodomą problemą. Jei turite klaidos nuotrauką (rekomenduojama padaryti), galite panaudoti Imgur.com bei nuotrauką įkelti bei čia įklijuoti nuorodą.
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)• Kokia tavo naršyklė?
Mozilla v5
• Prašome nukopijuoti / įklijuoti tekstą, rodomą anglų kalba, o ne savo kalba. Jei turite klaidos nuotrauką (rekomenduojama padaryti), galite panaudoti Imgur.com bei nuotrauką įkelti bei čia įklijuoti nuorodą.
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)• Ar šis tekstas yra translation system? Jei taip, ar jis buvo išverstas daugiau nei 24 valandas?
• Kokia tavo naršyklė?
Mozilla v5
• Prašome paaiškinti siūlomą pakeitimą tiksliai ir glaustai, kad būtų kuo lengviau suprasti, ką jūs siūlote.
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)• Kokia tavo naršyklė?
Mozilla v5
Raportų istorija
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? :)
Papildyti šį raportą
- Kitas stalo ID / ėjimo ID
- Ar F5 išsprendė šią problemą?
- Ar problemos atsirado keletą kartų? Kiekvieną kartą? Atsitiktiniu metu?
- Jei turite klaidos nuotrauką (rekomenduojama padaryti), galite panaudoti Imgur.com bei nuotrauką įkelti bei čia įklijuoti nuorodą.