#81603: "Random card selection not random on beet"
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.
When a beet is played a random card is selected from yours and an opponent's hand. When the hand consists of all-but-one artichokes I have found that the remaining non-artichoke is selected far more often than random chance would suggest. For example with a hand containing 4 artichokes and 1 potato, random chance would expect the potato to be passed on only around 20% of occasions, whereas that happens much more regularly.
I initially assumed I just had bad luck but after a couple of hundred games it is clear that the mechanism is not functioning correctly. Without access to the backend I obviously cannot diagnose the issue however my suspicion is that the code is selecting a random type of card (rather than a random individual card) so in the above example of 4 artichokes and 1 potato the game is making a 50/50 choice between the two types of card. I suspect this may also be the case when a leek is played however as it selects from the face down discard pile it is less obvious.
Please investigate. Thanks -
• 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
Visible in all games when a beet is played but see move 41 for an example.
• Peseurt merdeer eo hoc'h hini ?
Google Chrome v110
-
• Mar-plij, eilit/pegit an destenn e Saozneg ha n'eo ket en ho yezh. If you have a screenshot of this bug (good practice), you can use a picture hosting service of your choice (snipboard.io for example) to upload it and copy/paste the link here. Ha dibres eo an destenn-mañ er sistem treiñ? Ma ya, daoust ha troet eo bet ouzhpenn 24 eur 'zo ?
When a beet is played a random card is selected from yours and an opponent's hand. When the hand consists of all-but-one artichokes I have found that the remaining non-artichoke is selected far more often than random chance would suggest. For example with a hand containing 4 artichokes and 1 potato, random chance would expect the potato to be passed on only around 20% of occasions, whereas that happens much more regularly.
I initially assumed I just had bad luck but after a couple of hundred games it is clear that the mechanism is not functioning correctly. Without access to the backend I obviously cannot diagnose the issue however my suspicion is that the code is selecting a random type of card (rather than a random individual card) so in the above example of 4 artichokes and 1 potato the game is making a 50/50 choice between the two types of card. I suspect this may also be the case when a leek is played however as it selects from the face down discard pile it is less obvious.
Please investigate. Thanks • Peseurt merdeer eo hoc'h hini ?
Google Chrome v110
-
• 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.
When a beet is played a random card is selected from yours and an opponent's hand. When the hand consists of all-but-one artichokes I have found that the remaining non-artichoke is selected far more often than random chance would suggest. For example with a hand containing 4 artichokes and 1 potato, random chance would expect the potato to be passed on only around 20% of occasions, whereas that happens much more regularly.
I initially assumed I just had bad luck but after a couple of hundred games it is clear that the mechanism is not functioning correctly. Without access to the backend I obviously cannot diagnose the issue however my suspicion is that the code is selecting a random type of card (rather than a random individual card) so in the above example of 4 artichokes and 1 potato the game is making a 50/50 choice between the two types of card. I suspect this may also be the case when a leek is played however as it selects from the face down discard pile it is less obvious.
Please investigate. Thanks • Peseurt merdeer eo hoc'h hini ?
Google Chrome v110
-
• Petra oa diskouezet war ar skramm pa 'z oc'h chomet stanket (Skramm goullo ? Ul lodenn eus etrefas ar c'hoari ? Kemennadenn fazi ?)
When a beet is played a random card is selected from yours and an opponent's hand. When the hand consists of all-but-one artichokes I have found that the remaining non-artichoke is selected far more often than random chance would suggest. For example with a hand containing 4 artichokes and 1 potato, random chance would expect the potato to be passed on only around 20% of occasions, whereas that happens much more regularly.
I initially assumed I just had bad luck but after a couple of hundred games it is clear that the mechanism is not functioning correctly. Without access to the backend I obviously cannot diagnose the issue however my suspicion is that the code is selecting a random type of card (rather than a random individual card) so in the above example of 4 artichokes and 1 potato the game is making a 50/50 choice between the two types of card. I suspect this may also be the case when a leek is played however as it selects from the face down discard pile it is less obvious.
Please investigate. Thanks • Peseurt merdeer eo hoc'h hini ?
Google Chrome v110
-
• Pesseurt reolenn n'eo ket doujet gant azasadenn ar c'hoari-mañ ?
When a beet is played a random card is selected from yours and an opponent's hand. When the hand consists of all-but-one artichokes I have found that the remaining non-artichoke is selected far more often than random chance would suggest. For example with a hand containing 4 artichokes and 1 potato, random chance would expect the potato to be passed on only around 20% of occasions, whereas that happens much more regularly.
I initially assumed I just had bad luck but after a couple of hundred games it is clear that the mechanism is not functioning correctly. Without access to the backend I obviously cannot diagnose the issue however my suspicion is that the code is selecting a random type of card (rather than a random individual card) so in the above example of 4 artichokes and 1 potato the game is making a 50/50 choice between the two types of card. I suspect this may also be the case when a leek is played however as it selects from the face down discard pile it is less obvious.
Please investigate. Thanks -
• Ha posupl eo gwelet torridigezh ar reolenn e replay ar bartienn ? Ma 'z eo ya, da be niverenn taol ?
Visible in all games when a beet is played but see move 41 for an example.
• Peseurt merdeer eo hoc'h hini ?
Google Chrome v110
-
• Peseurt taol ho peus c'hoant c'hoari ?
When a beet is played a random card is selected from yours and an opponent's hand. When the hand consists of all-but-one artichokes I have found that the remaining non-artichoke is selected far more often than random chance would suggest. For example with a hand containing 4 artichokes and 1 potato, random chance would expect the potato to be passed on only around 20% of occasions, whereas that happens much more regularly.
I initially assumed I just had bad luck but after a couple of hundred games it is clear that the mechanism is not functioning correctly. Without access to the backend I obviously cannot diagnose the issue however my suspicion is that the code is selecting a random type of card (rather than a random individual card) so in the above example of 4 artichokes and 1 potato the game is making a 50/50 choice between the two types of card. I suspect this may also be the case when a leek is played however as it selects from the face down discard pile it is less obvious.
Please investigate. Thanks -
• Petra emaoc'h o klask ober evit delankañ an ober c'hoari-mañ ?
Visible in all games when a beet is played but see move 41 for an example.
-
• What happened when you try to do this (error message, game status bar message, ...)?
• Peseurt merdeer eo hoc'h hini ?
Google Chrome v110
-
• Da be bazenn ar bartienn eo en em gavet ar gudenn (petra oa testenn kemenn ar c'hoari) ?
When a beet is played a random card is selected from yours and an opponent's hand. When the hand consists of all-but-one artichokes I have found that the remaining non-artichoke is selected far more often than random chance would suggest. For example with a hand containing 4 artichokes and 1 potato, random chance would expect the potato to be passed on only around 20% of occasions, whereas that happens much more regularly.
I initially assumed I just had bad luck but after a couple of hundred games it is clear that the mechanism is not functioning correctly. Without access to the backend I obviously cannot diagnose the issue however my suspicion is that the code is selecting a random type of card (rather than a random individual card) so in the above example of 4 artichokes and 1 potato the game is making a 50/50 choice between the two types of card. I suspect this may also be the case when a leek is played however as it selects from the face down discard pile it is less obvious.
Please investigate. Thanks -
• What happened when you try to do a game action (error message, game status bar message, ...)?
Visible in all games when a beet is played but see move 41 for an example.
• Peseurt merdeer eo hoc'h hini ?
Google Chrome v110
-
• Mar-plij, diskrivit kudenn an diskwel. If you have a screenshot of this bug (good practice), you can use a picture hosting service of your choice (snipboard.io for example) to upload it and copy/paste the link here.
When a beet is played a random card is selected from yours and an opponent's hand. When the hand consists of all-but-one artichokes I have found that the remaining non-artichoke is selected far more often than random chance would suggest. For example with a hand containing 4 artichokes and 1 potato, random chance would expect the potato to be passed on only around 20% of occasions, whereas that happens much more regularly.
I initially assumed I just had bad luck but after a couple of hundred games it is clear that the mechanism is not functioning correctly. Without access to the backend I obviously cannot diagnose the issue however my suspicion is that the code is selecting a random type of card (rather than a random individual card) so in the above example of 4 artichokes and 1 potato the game is making a 50/50 choice between the two types of card. I suspect this may also be the case when a leek is played however as it selects from the face down discard pile it is less obvious.
Please investigate. Thanks • Peseurt merdeer eo hoc'h hini ?
Google Chrome v110
-
• Mar-plij, eilit/pegit an destenn e Saozneg ha n'eo ket en ho yezh. If you have a screenshot of this bug (good practice), you can use a picture hosting service of your choice (snipboard.io for example) to upload it and copy/paste the link here. Ha dibres eo an destenn-mañ er sistem treiñ? Ma ya, daoust ha troet eo bet ouzhpenn 24 eur 'zo ?
When a beet is played a random card is selected from yours and an opponent's hand. When the hand consists of all-but-one artichokes I have found that the remaining non-artichoke is selected far more often than random chance would suggest. For example with a hand containing 4 artichokes and 1 potato, random chance would expect the potato to be passed on only around 20% of occasions, whereas that happens much more regularly.
I initially assumed I just had bad luck but after a couple of hundred games it is clear that the mechanism is not functioning correctly. Without access to the backend I obviously cannot diagnose the issue however my suspicion is that the code is selecting a random type of card (rather than a random individual card) so in the above example of 4 artichokes and 1 potato the game is making a 50/50 choice between the two types of card. I suspect this may also be the case when a leek is played however as it selects from the face down discard pile it is less obvious.
Please investigate. Thanks • Peseurt merdeer eo hoc'h hini ?
Google Chrome v110
-
• 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.
When a beet is played a random card is selected from yours and an opponent's hand. When the hand consists of all-but-one artichokes I have found that the remaining non-artichoke is selected far more often than random chance would suggest. For example with a hand containing 4 artichokes and 1 potato, random chance would expect the potato to be passed on only around 20% of occasions, whereas that happens much more regularly.
I initially assumed I just had bad luck but after a couple of hundred games it is clear that the mechanism is not functioning correctly. Without access to the backend I obviously cannot diagnose the issue however my suspicion is that the code is selecting a random type of card (rather than a random individual card) so in the above example of 4 artichokes and 1 potato the game is making a 50/50 choice between the two types of card. I suspect this may also be the case when a leek is played however as it selects from the face down discard pile it is less obvious.
Please investigate. Thanks • Peseurt merdeer eo hoc'h hini ?
Google Chrome v110
Roll-istor an danevelloù bog
The code is open source, take look yourself:
github.com/0-wiz-0/bga-abandonallartichokes/blob/main/abandonallartichokes.game.php#L496
Here's the relevant part:
$opponent_hand = $this->cards->getPlayerHand($opponent_id);
...
$opponent_card = $this->cards->getCard(array_rand($opponent_hand, 1));
...
$hand = $this->cards->getPlayerHand(self::getActivePlayerId());
$card = $this->cards->getCard(array_rand($hand, 1));
I.e. all the cards in the hand of both players are taken as an array, and PHP's array_rand function is used to choose one element each.
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 ?
- If you have a screenshot of this bug (good practice), you can use a picture hosting service of your choice (snipboard.io for example) to upload it and copy/paste the link here.
