summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorarun <arun@nubati.net>2006-12-19 18:11:30 +0000
committerarun <arun>2006-12-19 18:11:30 +0000
commit808d4266534f00dcec0733dc64fe92133c31122d (patch)
tree1ab3df6c28957a2320e49204c5d6330de5627019 /index.php
parent1bb3313519b27a11d6634b584301f4d65f3ff364 (diff)
downloade-DoKo-808d4266534f00dcec0733dc64fe92133c31122d.tar.gz
e-DoKo-808d4266534f00dcec0733dc64fe92133c31122d.tar.bz2
e-DoKo-808d4266534f00dcec0733dc64fe92133c31122d.zip
started on adding support for different solo games (modified get_winner a tiny bit)...still needs work
Diffstat (limited to 'index.php')
-rw-r--r--index.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/index.php b/index.php
index cf55680..c849f69 100644
--- a/index.php
+++ b/index.php
@@ -225,6 +225,11 @@ else if(isset($_REQUEST["me"]))
/* reset solo, etc from players who did say something, but it didn't matter? */
break;
case 'poverty':
+ /* here we need to check if there is a solo or some other form o sickness.
+ * If so, which one counts
+ * set that one in the Game table, delete other ones form Hand table
+ * tell people about it.
+ */
echo "<br />poverty not handeled at the moment... you need to play a normal game<br />";
/* only set this after all poverty, etc. are handeled*/
@@ -367,7 +372,7 @@ else if(isset($_REQUEST["me"]))
/* whos turn is it? */
if($seq==4)
{
- $winner = get_winner($play); /* returns the position */
+ $winner = get_winner($play,"normal"); /* returns the position */
$next = $winner;
}
else
@@ -441,7 +446,7 @@ else if(isset($_REQUEST["me"]))
if($sequence==4)
{
$play = DB_get_cards_by_trick($trickid);
- $winner = get_winner($play); /* returns the position */
+ $winner = get_winner($play,"normal"); /* returns the position */
$next = $winner;
}
else