From 808d4266534f00dcec0733dc64fe92133c31122d Mon Sep 17 00:00:00 2001 From: arun Date: Tue, 19 Dec 2006 18:11:30 +0000 Subject: started on adding support for different solo games (modified get_winner a tiny bit)...still needs work --- index.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'index.php') 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 "
poverty not handeled at the moment... you need to play a normal game
"; /* 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 -- cgit v1.2.3-18-g5258