#81603: "Random card selection not random on beet"
O czym jest to zgłoszenie?
Co się stało? Wybierz z poniższych opcji
Co się stało? Wybierz z poniższych opcji
Sprawdź, czy istnieje już zgłoszenie na ten sam temat
Jeśli tak, ZAGŁOSUJ na to zgłoszenie. Zgłoszenia z największą liczbą głosów mają najwyższy PRIORYTET!
| # | Status | Votes | Game | Type | Title | Last update |
|---|
Szczegółowy opis
-
• Proszę skopiować i wkleić treść błędu wyświetloną na ekranie, o ile jakaś się pojawia.
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 -
• Proszę opisać co chciałeś zrobić, co zrobiłeś i co się stało
Visible in all games when a beet is played but see move 41 for an example.
• Jaką masz przeglądarkę?
Google Chrome v110
-
• Proszę skopiować i wkleić tekst wyświetlany w języku angielskim zamiast w twoim języku. Jeśli posiadasz zrzut ekranu przedstawiający ten błąd (dobra praktyka), możesz skorzystać z wybranej przez siebie usługi hostującej zdjęcia (np. snipboard.io), aby go przesłać, a następnie skopiuj i wklej link tutaj. Czy ten tekst jest dostępny w systemie tłumaczeń? Jeśli tak, to czy został przetłumaczony więcej niż 24 godziny temu?
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ą masz przeglądarkę?
Google Chrome v110
-
• Wyjaśnij swoją propozycję precyzyjnie i zwięźle, tak aby jak najłatwiej zrozumieć, co masz na myśli.
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ą masz przeglądarkę?
Google Chrome v110
-
• Co wyświetlało się na ekranie kiedy zostałeś zablokowany (Pusty ekran? Część interfejsu gry? Komunikat o błędzie?)
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ą masz przeglądarkę?
Google Chrome v110
-
• Która z zasad gry nie była przestrzegana w adaptacji 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 -
• Czy naruszenie zasad gry jest widoczne w powtórce rozgrywki? Jeżeli tak, to w ruchu o jakim numerze?
Visible in all games when a beet is played but see move 41 for an example.
• Jaką masz przeglądarkę?
Google Chrome v110
-
• Jaką akcję w grze chciałeś wykonać?
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 starasz się zrobić by uruchomić tę akcję w grze?
Visible in all games when a beet is played but see move 41 for an example.
-
• Co się stało kiedy próbowałeś to zrobić (komunikat o błędzie, komunikat na pasku stanu gry, ...)?
• Jaką masz przeglądarkę?
Google Chrome v110
-
• W którym momencie gry pojawił się problem (jakie było aktualne polecenie w grze)?
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 się stało kiedy próbowałeś wykonać akcję w grze (komunikat o błędzie, komunikat na pasku stanu gry, ...)?
Visible in all games when a beet is played but see move 41 for an example.
• Jaką masz przeglądarkę?
Google Chrome v110
-
• Proszę opisać problem z wyświetlaniem. Jeśli posiadasz zrzut ekranu przedstawiający ten błąd (dobra praktyka), możesz skorzystać z wybranej przez siebie usługi hostującej zdjęcia (np. snipboard.io), aby go przesłać, a następnie skopiuj i wklej link tutaj.
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ą masz przeglądarkę?
Google Chrome v110
-
• Proszę skopiować i wkleić tekst wyświetlany w języku angielskim zamiast w twoim języku. Jeśli posiadasz zrzut ekranu przedstawiający ten błąd (dobra praktyka), możesz skorzystać z wybranej przez siebie usługi hostującej zdjęcia (np. snipboard.io), aby go przesłać, a następnie skopiuj i wklej link tutaj. Czy ten tekst jest dostępny w systemie tłumaczeń? Jeśli tak, to czy został przetłumaczony więcej niż 24 godziny temu?
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ą masz przeglądarkę?
Google Chrome v110
-
• Wyjaśnij swoją propozycję precyzyjnie i zwięźle, tak aby jak najłatwiej zrozumieć, co masz na myśli.
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ą masz przeglądarkę?
Google Chrome v110
Historia zgłoszeń
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.
Dodaj coś do tego zgłoszenia
- Kolejne ID stołu / ID ruchu
- Czy F5 rozwiązało problem?
- Czy problem zdarzył się kilka razy? Za każdym razem? Losowo?
- Jeśli posiadasz zrzut ekranu przedstawiający ten błąd (dobra praktyka), możesz skorzystać z wybranej przez siebie usługi hostującej zdjęcia (np. snipboard.io), aby go przesłać, a następnie skopiuj i wklej link tutaj.
