#81603: "Random card selection not random on beet"
Kāds ir šis ziņojums?
Kas notika? Lūdzu izvēlies no zemākredzamajiem
Kas notika? Lūdzu izvēlies no zemākredzamajiem
Lūdzu, pārbaudiet, vai par šo pašu tēmu jau ir ziņojums
Ja jā, lūdzu, balsojiet par šo ziņojumu. Ziņojumiem ar vislielākajām balsīm tiek dota PRIORITĀTE!
| # | Status | Votes | Game | Type | Title | Last update |
|---|
Detalizēts apraksts
-
• Lūdzu nokopē/ielīmē kļūdas ziņu, ko redzi ekrānā, ja tāda ir.
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 -
• Lūdzu paskaidro, ko Tu vēlējies darīt, ko Tu izdarīji un kas notika
Visible in all games when a beet is played but see move 41 for an example.
• Kāda ir Tava pārlūkprogramma?
Google Chrome v110
-
• Lūdzu iekopē tekstu, kas redzams angļu, nevis tavā valodā. 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. Vai šis teksts ir pieejams tulkošanas sistēmā? Ja jā, vai tas ir ticis tulkots pēdējo 24 stundu laikā?
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 • Kāda ir Tava pārlūkprogramma?
Google Chrome v110
-
• Lūdzu, paskaidrojiet savu ieteikumu precīzi un kodolīgi, lai tas būtu pēc iespējas vieglāk saprotams.
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 • Kāda ir Tava pārlūkprogramma?
Google Chrome v110
-
• Kas tika attēlots ekrānā, kad Tu tiki bloķēts (tukšs ekrāns? Daļa no spēles interfeisa? Ziņa par kļūdu?)?
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 • Kāda ir Tava pārlūkprogramma?
Google Chrome v110
-
• Kura noteikumu daļa netika ņemta vērā BGA versijā?
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 -
• Vai noteikumu pārkāpums ir redzams spēles atkārtojumā? Ja jā, tad kurā gājienā?
Visible in all games when a beet is played but see move 41 for an example.
• Kāda ir Tava pārlūkprogramma?
Google Chrome v110
-
• Kādu spēles darbību Tu vēlējies veikt?
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 -
• Ko tu dari, lai panāktu šo spēles darbību?
Visible in all games when a beet is played but see move 41 for an example.
-
• Kas notika, kad veicāt šo darbību (kļūdas paziņojums, spēles informācijas paziņojums,...)?
• Kāda ir Tava pārlūkprogramma?
Google Chrome v110
-
• Kurā spēles solī problēma parādījās (kas bija tā brīža spēles instrukcija)?
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 -
• Kas notika, kad mēģinājāt veikt spēles darbību (kļūdas paziņojums, spēles informācijas paziņojums,...)?
Visible in all games when a beet is played but see move 41 for an example.
• Kāda ir Tava pārlūkprogramma?
Google Chrome v110
-
• Lūdzu aprakstiet radušos problēmu. 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 • Kāda ir Tava pārlūkprogramma?
Google Chrome v110
-
• Lūdzu iekopē tekstu, kas redzams angļu, nevis tavā valodā. 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. Vai šis teksts ir pieejams tulkošanas sistēmā? Ja jā, vai tas ir ticis tulkots pēdējo 24 stundu laikā?
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 • Kāda ir Tava pārlūkprogramma?
Google Chrome v110
-
• Lūdzu, paskaidrojiet savu ieteikumu precīzi un kodolīgi, lai tas būtu pēc iespējas vieglāk saprotams.
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 • Kāda ir Tava pārlūkprogramma?
Google Chrome v110
Ziņojuma vēsture
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.
Pievieno kaut ko šim ziņojumam
- Cita galda ID / gājiena ID
- Vai F5 atrisināja šo problēmu?
- Vai šī problēma parādās vairākas reizes? Katru reizi? Nekonkrētās reizēs?
- 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.
