#81603: "Random card selection not random on beet"
A che riguardo è la segnalazione?
Cos'è successo? Prego, seleziona tra le seguenti
Cos'è successo? Prego, seleziona tra le seguenti
Si prega di verificare se esiste già una segnalazione sullo stesso argomento
Se sì, per favore VOTA solo questa segnalazione. Segnalazioni con più voti hanno priorità di presa in carico!
| # | Status | Votes | Game | Type | Title | Last update |
|---|
Descrizione dettagliata
-
• Per favore copia/incolla il messaggio di errore visualizzato sullo schermo, se possibile.
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 -
• Per favore spiega cosa avresti voluto fare, cosa hai fatto e cosa è successo
Visible in all games when a beet is played but see move 41 for an example.
• Qual è il tuo browser?
Google Chrome v110
-
• Per favore copia/incolla il testo visualizzato in inglese invece che nella tua lingua. Se hai uno screenshot di questo bug (è sempre buona norma farlo), usa un servizio di caricamento immagini a tua scelta (come snipboard.io) per caricarlo e copiare/incollare il link qui. Questo testo è disponibile nel sistema di traduzione? Se sì, è stato tradotto nell'arco di più di 24 ore?
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 • Qual è il tuo browser?
Google Chrome v110
-
• Spiega il tuo suggerimento in modo preciso e conciso in modo che sia il più semplice possibile per capire cosa intendi.
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 • Qual è il tuo browser?
Google Chrome v110
-
• Cosa era mostrato sullo schermo quando sei rimasto bloccato (schermo bianco? interfaccia di gioco parziale? messaggio di errore?)
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 • Qual è il tuo browser?
Google Chrome v110
-
• Quale parte delle regole non è stata rispettata dall'adattamento 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 -
• La violazione delle regole è visibile nel replay della partita? Se sì, a che numero di mossa?
Visible in all games when a beet is played but see move 41 for an example.
• Qual è il tuo browser?
Google Chrome v110
-
• Qual era l'azione di gioco che volevi fare?
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 -
• Cosa stai provando a fare per attivare questa azione di gioco?
Visible in all games when a beet is played but see move 41 for an example.
-
• Cosa è successo quando hai provato a fare questo (messaggio di errore, messaggio nella barra di stato del gioco...)?
• Qual è il tuo browser?
Google Chrome v110
-
• In quale fase del gioco si è verificato il problema (qual era l'istruzione della partita in corso)?
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 -
• Cosa è successo quando hai provato a fare questa azione di gioco (messaggio di errore, messaggio nella barra di stato del gioco...)?
Visible in all games when a beet is played but see move 41 for an example.
• Qual è il tuo browser?
Google Chrome v110
-
• Per favore descrivi il problema rilevato. Se hai uno screenshot di questo bug (è sempre buona norma farlo), usa un servizio di caricamento immagini a tua scelta (come snipboard.io) per caricarlo e copiare/incollare il link qui.
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 • Qual è il tuo browser?
Google Chrome v110
-
• Per favore copia/incolla il testo visualizzato in inglese invece che nella tua lingua. Se hai uno screenshot di questo bug (è sempre buona norma farlo), usa un servizio di caricamento immagini a tua scelta (come snipboard.io) per caricarlo e copiare/incollare il link qui. Questo testo è disponibile nel sistema di traduzione? Se sì, è stato tradotto nell'arco di più di 24 ore?
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 • Qual è il tuo browser?
Google Chrome v110
-
• Spiega il tuo suggerimento in modo preciso e conciso in modo che sia il più semplice possibile per capire cosa intendi.
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 • Qual è il tuo browser?
Google Chrome v110
Storico dei resoconti
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.
Aggiungi qualcosa a questo report
- Un altro ID tavolo / ID mossa
- F5 ha risolto il problema?
- Il problema si verifica spesso? Ogni volta? Casualmente?
- Se hai uno screenshot di questo bug (è sempre buona norma farlo), usa un servizio di caricamento immagini a tua scelta (come snipboard.io) per caricarlo e copiare/incollare il link qui.
