#103348: "Better algorithm in order to get less repeats"
What is this report about?
Petra a zo c'hoarvezet ? Trugarez evit dibab amañ dindan
Petra a zo c'hoarvezet ? Trugarez evit dibab amañ dindan
Gwiriit mar-plij ma n'eus ket dija un danevell evit an hevelep dodenn
M'oc'h a-du, VOTIT evit an danevell-mañ. An danevelloù gant ar muiañ a vouezhioù a vo studiet DA GENTAÑ !
# | Status | Votes | Game | Type | Title | Last update |
---|
Deskrivadur dre ar munud
• Mar-plij, eilit/pegit ar gemennadenn fazi a zo war ho skramm, ma zo unan.
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)• Displegit deomp, mar-plij, ar pezh ho poa c'hoant d'ober, ar pezh ho peus graet hag ar pezh a zo c'hoarvezet 'benn ar fin
• Peseurt merdeer eo hoc'h hini ?
Mozilla v5
• Mar-plij, eilit/pegit an destenn e Saozneg ha n'eo ket en ho yezh. M'ho peus ul lennad skramm eus ar gudenn (ho pezit soñj d'eus se !), gellout a rit implij Imgur.com evit e bellgargañ hag eilañ/pegañ al liamm amañ.
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)• Ha dibres eo an destenn-mañ er sistem treiñ? Ma ya, daoust ha troet eo bet ouzhpenn 24 eur 'zo ?
• Peseurt merdeer eo hoc'h hini ?
Mozilla v5
• Displegit ho kinnig mar-plij, e berrgomzoù met en un doare resis, evit ma vefe an aesañ posupl kompren mat ar pezh ho peus c'hoant lâret.
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)• Peseurt merdeer eo hoc'h hini ?
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)• Peseurt merdeer eo hoc'h hini ?
Mozilla v5
• Which part of the rules was not respected 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)• Ha posupl eo gwelet torridigezh ar reolenn e replay ar bartienn ? Ma 'z eo ya, da be niverenn taol ?
• Peseurt merdeer eo hoc'h hini ?
Mozilla v5
• Peseurt taol ho peus c'hoant c'hoari ?
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)• Petra emaoc'h o klask ober evit delankañ an ober c'hoari-mañ ?
• What happened when you try to do this (error message, game status bar message, ...)?
• Peseurt merdeer eo hoc'h hini ?
Mozilla v5
• Da be bazenn ar bartienn eo en em gavet ar gudenn (petra oa testenn kemenn ar c'hoari) ?
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 try to do a game action (error message, game status bar message, ...)?
• Peseurt merdeer eo hoc'h hini ?
Mozilla v5
• Mar-plij, diskrivit kudenn an diskwel. M'ho peus ul lennad skramm eus ar gudenn (ho pezit soñj d'eus se !), gellout a rit implij Imgur.com evit e bellgargañ hag eilañ/pegañ al liamm amañ.
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)• Peseurt merdeer eo hoc'h hini ?
Mozilla v5
• Mar-plij, eilit/pegit an destenn e Saozneg ha n'eo ket en ho yezh. M'ho peus ul lennad skramm eus ar gudenn (ho pezit soñj d'eus se !), gellout a rit implij Imgur.com evit e bellgargañ hag eilañ/pegañ al liamm amañ.
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)• Ha dibres eo an destenn-mañ er sistem treiñ? Ma ya, daoust ha troet eo bet ouzhpenn 24 eur 'zo ?
• Peseurt merdeer eo hoc'h hini ?
Mozilla v5
• Displegit ho kinnig mar-plij, e berrgomzoù met en un doare resis, evit ma vefe an aesañ posupl kompren mat ar pezh ho peus c'hoant lâret.
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)• Peseurt merdeer eo hoc'h hini ?
Mozilla v5
Roll-istor an danevelloù bog
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? :)
Ouzhpennañ un dra bennak d'an danevell-mañ
- Niverenn taol all / Niverenn ar fiñv
- Ha renket eo bet ar gudenn gant an douchenn F5 ?
- Ha c'hoarvezet eo ar gudenn meur a wech ? Bewech ? Cheñch-dicheñch ?
- M'ho peus ul lennad skramm eus ar gudenn (ho pezit soñj d'eus se !), gellout a rit implij Imgur.com evit e bellgargañ hag eilañ/pegañ al liamm amañ.