found a bug in the shuffling routine
authorarun <arun@nubati.net>
Wed, 16 May 2007 12:34:17 +0000 (12:34 +0000)
committerarun <arun>
Wed, 16 May 2007 12:34:17 +0000 (12:34 +0000)
functions.php
index.php

index a8cdea8288369c2f3c22c19b58aa71d8814f80fe..66010aed18546a9d7573cae5c89194a12fd7c51a 100644 (file)
@@ -442,7 +442,7 @@ function  create_array_of_random_numbers()
       for($i=0;$i<48;$i++)
        $a[$i]=$i+1;
       
       for($i=0;$i<48;$i++)
        $a[$i]=$i+1;
       
-      $r = array_rand($a,48);
+      $r = shuffle($a);
     };
 
   return $r;
     };
 
   return $r;
index 83c8cb7c2a553480ab8c4f05bb4982b9a6ff081d..712b48b4ce745e6ba2999572b50b88f0a219089e 100644 (file)
--- a/index.php
+++ b/index.php
@@ -852,7 +852,7 @@ else if(myisset("me"))
            echo " Please, <a href=\"$host?me=$me\">start</a> the game.<br />";  
        }
       else
            echo " Please, <a href=\"$host?me=$me\">start</a> the game.<br />";  
        }
       else
-       echo "You finished the setup, once everyone else has done the same you'll get an email when it is your turn..<br />";    
+       echo "You finished the setup, at the moment you need to reload this page after everyone else has finished there setup so that the server can figure out vorbehalte... in future this will get an email in case you need to do anything, but this is not implemented yet :( <br />";      
 
       break;
     case 'play':
 
       break;
     case 'play':