Page 1 of 1
Algorithm
Posted: 11 June 2024, 14:48
by DingerAZ
Sure seems like the programmers of the game wrote algorithm instead of the deck being random. Certain things just come out that are statistical Unicorns. Based on your deck, if you go outside the norm, feels like the programmers punish you. You can almost call how it will play out before it does. It's like no chance this card comes out first three time in a row out of a deck of 15, then it does. Then next game it happens again. If the programmers truly built it random I need to go buy a Powerball ticket today.
Re: Algorithm
Posted: 11 June 2024, 18:32
by GTSchemer
Greetings, I am the programmer. Here is the source code that handles random behavior in Challengers (e.g. shuffling decks), if anyone is curious:
Code: Select all
public static function pickRandom(&$thing_list)
{
$rand_index = bga_rand(0, (count($thing_list) - 1));
$rand_thing = $thing_list[$rand_index];
array_splice($thing_list, $rand_index, 1);
return $rand_thing;
}
I realize it may seem frustrating sometimes, but bga_rand() has been analyzed extensively and produces the expected distribution of numbers. Of course, certain games will be lucky, but that is how random numbers work.

Re: Algorithm
Posted: 11 June 2024, 20:46
by Jellby
When people say "algorithm", they really mean "god", "magic" or "pixie"
Re: Algorithm
Posted: 11 June 2024, 21:29
by DingerAZ
I guess I'll by that lottery ticket.