#81603: "Random card selection not random on beet"
Waarover gaat dit rapport?
Wat is er gebeurd? Selecteer uit het onderstaande
Wat is er gebeurd? Selecteer uit het onderstaande
Controleer of er al een rapport is over hetzelfde onderwerp
Zo ja, gelieve dan voor dit rapport te STEMMEN. Rapporten met de meeste stemmen krijgen VOORRANG!
| # | Status | Votes | Game | Type | Title | Last update |
|---|
Gedetailleerde beschrijving
-
• Kopieer en plak alsjeblieft de foutboodschap die je op je scherm ziet, indien van toepassing.
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 -
• Leg uit wat je wilde doen, wat je deed en wat er gebeurde
Visible in all games when a beet is played but see move 41 for an example.
• Welke browser gebruik je?
Google Chrome v110
-
• Kopieer en plak alsjeblieft de tekst die in het Engels wordt getoond in plaats van in jouw taal. Als je een screenshot van de bug hebt (goede gewoonte), kun je een afbeeldingswebsite gebruiken (bijvoorbeeld snipboard.io) om deze te uploaden en de link hier te delen. Is deze tekst beschikbaar in het vertaalsysteem? Zo ja, is deze meer dan 24 uur geleden vertaald?
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 • Welke browser gebruik je?
Google Chrome v110
-
• Gelieve jouw suggestie precies en beknopt uit te leggen zodat het zo makkelijk mogelijk is om te begrijpen wat je bedoelt.
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 • Welke browser gebruik je?
Google Chrome v110
-
• Wat stond op het scherm toen je geblokkeerd was (Leeg scherm? Een deel van de spelinterface? Foutboodschap?)
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 • Welke browser gebruik je?
Google Chrome v110
-
• Met welk onderdeel van de regels is geen rekening gehouden bij de BGA-versie?
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 -
• Is de inbreuk op de spelregels zichtbaar in de spelherhaling? Indien ja, bij welk zetnummer?
Visible in all games when a beet is played but see move 41 for an example.
• Welke browser gebruik je?
Google Chrome v110
-
• Welke spelactie wilde je uitvoeren?
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 -
• Wat probeerde je te doen om deze spelactie te laten optreden?
Visible in all games when a beet is played but see move 41 for an example.
-
• Wat gebeurde er toen je dit probeerde te doen (foutboodschap, melding op de statusbalk van het spel, ...)?
• Welke browser gebruik je?
Google Chrome v110
-
• In welke fase van het spel deed het probleem zich voor (wat was de huidige spelinstructie)?
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 -
• Wat gebeurde toen je deze spelactie probeerde (foutboodschap, melding op de statusbalk van het spel, ...)?
Visible in all games when a beet is played but see move 41 for an example.
• Welke browser gebruik je?
Google Chrome v110
-
• Beschrijf alsjeblieft het probleem met de beeldweergave. Als je een screenshot van de bug hebt (goede gewoonte), kun je een afbeeldingswebsite gebruiken (bijvoorbeeld snipboard.io) om deze te uploaden en de link hier te delen.
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 • Welke browser gebruik je?
Google Chrome v110
-
• Kopieer en plak alsjeblieft de tekst die in het Engels wordt getoond in plaats van in jouw taal. Als je een screenshot van de bug hebt (goede gewoonte), kun je een afbeeldingswebsite gebruiken (bijvoorbeeld snipboard.io) om deze te uploaden en de link hier te delen. Is deze tekst beschikbaar in het vertaalsysteem? Zo ja, is deze meer dan 24 uur geleden vertaald?
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 • Welke browser gebruik je?
Google Chrome v110
-
• Gelieve jouw suggestie precies en beknopt uit te leggen zodat het zo makkelijk mogelijk is om te begrijpen wat je bedoelt.
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 • Welke browser gebruik je?
Google Chrome v110
Rapportgeschiedenis
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.
Dit rapport aanvullen
- Andere tafel ID / zet ID
- Loste F5 het probleem op?
- Kwam het probleem meerdere keren voor? Altijd? Willekeurig?
- Als je een screenshot van de bug hebt (goede gewoonte), kun je een afbeeldingswebsite gebruiken (bijvoorbeeld snipboard.io) om deze te uploaden en de link hier te delen.
