projects
/
e-DoKo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4b3c8ef
)
fixed typo and added a comment
author
Arun Persaud
<arun@nubati.net>
Tue, 18 Sep 2012 02:32:56 +0000
(19:32 -0700)
committer
Arun Persaud
<arun@nubati.net>
Tue, 18 Sep 2012 02:32:56 +0000
(19:32 -0700)
include/functions.php
patch
|
blob
|
history
diff --git
a/include/functions.php
b/include/functions.php
index 897b20e6ebc5597e642a06cc04a850172103152c..6873cbfa044443a5a1b57657dfc45907e091a5f2 100644
(file)
--- a/
include/functions.php
+++ b/
include/functions.php
@@
-566,6
+566,9
@@
function create_array_of_random_numbers($useridA,$useridB,$useridC,$useridD)
if($debug)
{
if($debug)
{
+ /* fix the hands; makes debugging easier; the following hands have lots of sicknesses,
+ * to make testing easier
+ */
$r[ 0]=1; $r[12]=47; $r[24]=13; $r[36]=37;
$r[ 1]=2; $r[13]=23; $r[25]=14; $r[37]=38;
$r[ 2]=3; $r[14]=27; $r[26]=15; $r[38]=39;
$r[ 0]=1; $r[12]=47; $r[24]=13; $r[36]=37;
$r[ 1]=2; $r[13]=23; $r[25]=14; $r[37]=38;
$r[ 2]=3; $r[14]=27; $r[26]=15; $r[38]=39;
@@
-582,7
+585,7
@@
function create_array_of_random_numbers($useridA,$useridB,$useridC,$useridD)
else
{
/* check if we can find a game were non of the player was involved and return
else
{
/* check if we can find a game were non of the player was involved and return
- * cards insted
+ * cards inste
a
d
*/
$userstr = "'".implode("','",array($useridA,$useridB,$useridC,$useridD))."'";
$randomnumbers = DB_get_unused_randomnumbers($userstr);
*/
$userstr = "'".implode("','",array($useridA,$useridB,$useridC,$useridD))."'";
$randomnumbers = DB_get_unused_randomnumbers($userstr);