#103348: "Better algorithm in order to get less repeats"
Про що цей звіт?
Що трапилося? Будь ласка, виберіть нижче
Що трапилося? Будь ласка, виберіть нижче
Будь ласка, перевірте, чи вже є звіт на цю тему
Якщо це так, будь ласка, ПРОГОЛОСУЙТЕ за цей звіт. Звіти з найбільшою кількістю голосів розглядатимуть У ПЕРШУ ЧЕРГУ!
# | Status | Votes | Game | Type | Title | Last update |
---|
Детальний опис
• Будь ласка, скопіюйте/вставте повідомлення про помилку, якщо ви бачите якесь на своєму екрані.
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)• Будь ласка, опишіть, що ви намагалися зробити, що зробили, та що трапилось
• Який у вас браузер?
Mozilla v5
• Будь ласка, скопіюйте/вставте текст відображений англійською замість вашої мови. Якщо ви маєте знімок екрана з помилкою (рекомендована практика), то можете використати Imgur.com, щоб завантажити його, та скопіювати посилання на нього сюди.
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)• Чи цей текст доступний у системі перекладів? Якщо так, то чи перекладали його понад 24 години тому?
• Який у вас браузер?
Mozilla v5
• Будь ласка, поясніть вашу пропозицію точно й лаконічно, щоб було якомога легше зрозуміти, що ви маєте на увазі.
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)• Який у вас браузер?
Mozilla v5
• Що було на екрані до того, як ваша гра заблокувалася (Порожній екран? Частина ігрового інтерфейсу? Повідомлення про помилку?)
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)• Який у вас браузер?
Mozilla v5
• Які саме правила були порушені адаптацією гри на 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)• Чи видні порушення правил на повторі гри? Якщо так, на якому кроці?
• Який у вас браузер?
Mozilla v5
• Яку ігрову дію ви намагалися виконати?
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)• Що ви намагались зробити, щоб активувати цю ігрову дію?
• Що сталося, коли Ви намагалися виконати цю дію (текст помилки, статус на панелі повідомлень, ...)?
• Який у вас браузер?
Mozilla v5
• На якому етапі гри виникла проблема (яка була на той момент вказівка в грі)?
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)• Що стається, коли ви намагаєтесь зробити ігрову дію (повідомлення про помилку, повідомлення на панелі статусу гри і т.п.)?
• Який у вас браузер?
Mozilla v5
• Будь ласка, опишіть візуальну помилку. Якщо ви маєте знімок екрана з помилкою (рекомендована практика), то можете використати Imgur.com, щоб завантажити його, та скопіювати посилання на нього сюди.
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)• Який у вас браузер?
Mozilla v5
• Будь ласка, скопіюйте/вставте текст відображений англійською замість вашої мови. Якщо ви маєте знімок екрана з помилкою (рекомендована практика), то можете використати Imgur.com, щоб завантажити його, та скопіювати посилання на нього сюди.
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)• Чи цей текст доступний у системі перекладів? Якщо так, то чи перекладали його понад 24 години тому?
• Який у вас браузер?
Mozilla v5
• Будь ласка, поясніть вашу пропозицію точно й лаконічно, щоб було якомога легше зрозуміти, що ви маєте на увазі.
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)• Який у вас браузер?
Mozilla v5
Історія звітів
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? :)
Додайте що-небудь до цього відгуку
- ID іншого столу / ходу
- F5 вирішило проблему?
- Чи виникає проблема періодично? Щоразу? Випадково?
- Якщо ви маєте знімок екрана з помилкою (рекомендована практика), то можете використати Imgur.com, щоб завантажити його, та скопіювати посилання на нього сюди.