#81603: "Random card selection not random on beet"
Čeho se toto hlášení týká?
Co se stalo? Prosím vyberte níže
Co se stalo? Prosím vyberte níže
Prosím zkontroluj, zda již neexistuje hlášení pro stejnou věc
Pokud ano, HLASUJ pro toto hlášení. Hlášení s nejvyšším počtem hlasů budou řešena PŘEDNOSTNĚ!
| # | Status | Votes | Game | Type | Title | Last update |
|---|
Detailní popis
-
• Prosím, zkopíruj a vlož hlášení o chybě, které vidíš na monitoru, pokud to lze.
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 -
• Prosím popiš, co jsi měl v úmyslu udělat, co jsi udělal a co se nakonec stalo
Visible in all games when a beet is played but see move 41 for an example.
• Jaký prohlížeč používáte?
Google Chrome v110
-
• Prosíme, zkopíruj/vlož text zobrazený v angličtině namísto tvého jazyka. Pokud máš snímek obrazovky tohoto bugu (doporučený postup), můžeš použít libovolnou službu pro hostování obrázků (například snipboard.io), nahrát ho tam a odkaz sem zkopírovat/vložit. Je tento text k dispozici v systému pro překládání? Pokud ano, byl přeložen před více než 24 hodinami?
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 • Jaký prohlížeč používáte?
Google Chrome v110
-
• Prosím popiš svůj návrh přesně a konzistentně, aby bylo snadné pochopit, co máš na mysli.
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 • Jaký prohlížeč používáte?
Google Chrome v110
-
• Co bylo zobrazeno na monitoru, když došlo k tvému zablokování? (Černá obrazovka? Část herního prostředí? Hlášení o chybě?)
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 • Jaký prohlížeč používáte?
Google Chrome v110
-
• Která část pravidel nebyla dodržena adaptací hry na BGA
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 -
• Je vidět porušení pravidel na záznamu hry? Pokud ano, ve kterém tahu?
Visible in all games when a beet is played but see move 41 for an example.
• Jaký prohlížeč používáte?
Google Chrome v110
-
• O jakou herní akci ses pokoušel/a?
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 -
• Co ses pokoušel/a udělat, abys spustil/a tuhle herní akci?
Visible in all games when a beet is played but see move 41 for an example.
-
• Co se stalo, když ses o tuto akci pokusil/a (vyskočila chybová hláška, lišta ve hře, ...)?
• Jaký prohlížeč používáte?
Google Chrome v110
-
• V jaké fázi hry problém nastal (jaký byl poslední herní pokyn)?
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 -
• Co se stalo, když ses pokusil/a udělat akci (chybová hláška, oznámení stavového řádku hry, ...)?
Visible in all games when a beet is played but see move 41 for an example.
• Jaký prohlížeč používáte?
Google Chrome v110
-
• Prosím popište vyobrazený problém. Pokud máš snímek obrazovky tohoto bugu (doporučený postup), můžeš použít libovolnou službu pro hostování obrázků (například snipboard.io), nahrát ho tam a odkaz sem zkopírovat/vložit.
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 • Jaký prohlížeč používáte?
Google Chrome v110
-
• Prosíme, zkopíruj/vlož text zobrazený v angličtině namísto tvého jazyka. Pokud máš snímek obrazovky tohoto bugu (doporučený postup), můžeš použít libovolnou službu pro hostování obrázků (například snipboard.io), nahrát ho tam a odkaz sem zkopírovat/vložit. Je tento text k dispozici v systému pro překládání? Pokud ano, byl přeložen před více než 24 hodinami?
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 • Jaký prohlížeč používáte?
Google Chrome v110
-
• Prosím popiš svůj návrh přesně a konzistentně, aby bylo snadné pochopit, co máš na mysli.
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 • Jaký prohlížeč používáte?
Google Chrome v110
Historie hlášení
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.
Doplňte tuto zprávu
- ID dalšího stolu / ID tahu
- Byla chyba odstraněna stisknutím F5?
- Objevila se tato chyba častěji? Pokaždé? Náhodně?
- Pokud máš snímek obrazovky tohoto bugu (doporučený postup), můžeš použít libovolnou službu pro hostování obrázků (například snipboard.io), nahrát ho tam a odkaz sem zkopírovat/vložit.
