Algorithm

Forum rules
Please DO NOT POST BUGS on this forum. Please report (and vote) bugs on : https://boardgamearena.com/bugs
Post Reply
User avatar
DingerAZ
Posts: 2
Joined: 29 January 2023, 20:50

Algorithm

Post 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.
User avatar
GTSchemer
Posts: 1130
Joined: 09 August 2013, 03:26

Re: Algorithm

Post 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. :)
User avatar
Jellby
Posts: 3544
Joined: 31 December 2013, 12:22

Re: Algorithm

Post by Jellby »

When people say "algorithm", they really mean "god", "magic" or "pixie"
User avatar
DingerAZ
Posts: 2
Joined: 29 January 2023, 20:50

Re: Algorithm

Post by DingerAZ »

I guess I'll by that lottery ticket.
Post Reply

Return to “Challengers”