#81603: "Random card selection not random on beet"
¿Sobre qué es este informe?
¿Qué ha pasado? Por favor, selecciona una de las opciones siguientes
¿Qué ha pasado? Por favor, selecciona una de las opciones siguientes
Por favor, comprueba si ya hay un informe sobre el mismo tema
Si es así, por favor VOTA por este informe. ¡A los informes con más votos se les da PRIORIDAD!
| # | Status | Votes | Game | Type | Title | Last update |
|---|
Descripción detallada
-
• Por favor, copia/pega el mensaje de error que ves en tu pantalla, si hay alguno.
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 -
• Por favor, explica lo que querías hacer, lo que hiciste y lo que pasó
Visible in all games when a beet is played but see move 41 for an example.
• ¿Qué navegador estás usando?
Google Chrome v110
-
• Por favor, copia/pega el texto mostrado en inglés en lugar de en tu idioma. Si tienes una captura de pantalla de este error (buena práctica), puedes usar un servicio de hospedaje de imágenes a tu elección (snipboard.io, por ejemplo) para subirla y copiar/pegar el enlace aquí. ¿Está este texto disponible en el sistema de traducción? Si es así, ¿ha sido traducido hace más de 24 horas?
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 • ¿Qué navegador estás usando?
Google Chrome v110
-
• Por favor explica tu sugerencia de manera precisa y concisa para que sea lo más fácil posible entender lo que quieres decir.
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 • ¿Qué navegador estás usando?
Google Chrome v110
-
• ¿Qué había en la pantalla cuando se quedó bloqueado? (¿mensaje de error?, ¿pantalla en blanco?, ¿una parte de la interfaz del juego?)
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 • ¿Qué navegador estás usando?
Google Chrome v110
-
• ¿Qué parte de las reglas no se ha respetado en la adaptación de 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 infracción de las reglas es visible en la repetición de la partida? Si es así, ¿en qué jugada?
Visible in all games when a beet is played but see move 41 for an example.
• ¿Qué navegador estás usando?
Google Chrome v110
-
• ¿Qué acción de juego querías realizar?
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 -
• ¿Qué es lo que trataste de hacer para activar esta acción del juego?
Visible in all games when a beet is played but see move 41 for an example.
-
• ¿Qué sucedió cuando lo hiciste (el mensaje de error, mensaje en la barra de estado del juego, ...)?
• ¿Qué navegador estás usando?
Google Chrome v110
-
• ¿En qué etapa de la partida ocurrió el problema? ¿Cuál era la instrucción actual del juego?
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 -
• ¿Qué sucedió cuando trataste de hacer una acción de juego (mensaje de error, mensaje en la barra de estado del juego, ...)?
Visible in all games when a beet is played but see move 41 for an example.
• ¿Qué navegador estás usando?
Google Chrome v110
-
• Por favor, describe el problema de visualización. Si tienes una captura de pantalla de este error (buena práctica), puedes usar un servicio de hospedaje de imágenes a tu elección (snipboard.io, por ejemplo) para subirla y copiar/pegar el enlace aquí.
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 • ¿Qué navegador estás usando?
Google Chrome v110
-
• Por favor, copia/pega el texto mostrado en inglés en lugar de en tu idioma. Si tienes una captura de pantalla de este error (buena práctica), puedes usar un servicio de hospedaje de imágenes a tu elección (snipboard.io, por ejemplo) para subirla y copiar/pegar el enlace aquí. ¿Está este texto disponible en el sistema de traducción? Si es así, ¿ha sido traducido hace más de 24 horas?
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 • ¿Qué navegador estás usando?
Google Chrome v110
-
• Por favor explica tu sugerencia de manera precisa y concisa para que sea lo más fácil posible entender lo que quieres decir.
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 • ¿Qué navegador estás usando?
Google Chrome v110
Historial de informes
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.
Agregar a este informe
- Otro ID de partida / ID de jugada
- ¿Se resolvió el problema al pulsar F5?
- ¿Apareció el problema varias veces? ¿Cada vez? ¿Aleatoriamente?
- Si tienes una captura de pantalla de este error (buena práctica), puedes usar un servicio de hospedaje de imágenes a tu elección (snipboard.io, por ejemplo) para subirla y copiar/pegar el enlace aquí.
