diff options
author | arun <arun@nubati.net> | 2006-12-19 18:11:30 +0000 |
---|---|---|
committer | arun <arun> | 2006-12-19 18:11:30 +0000 |
commit | 808d4266534f00dcec0733dc64fe92133c31122d (patch) | |
tree | 1ab3df6c28957a2320e49204c5d6330de5627019 /index.php | |
parent | 1bb3313519b27a11d6634b584301f4d65f3ff364 (diff) | |
download | e-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.php | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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 |