\n
\n";
else
- echo "
\n";
+ {
+ /* display current trick */
+ echo "
Current Trick\n \n
";
+ }
for($i=0;$i
",$card))
{
$tmp = explode("->",$card);
- echo "";
+ echo "
\n";
if(strlen($tmp[2])>0)
- echo "
\n";
+ echo "
\n";
}
}
- echo "\n";
+
+ echo "
\n \n";
}
-
+ echo "
\n";
+
+ echo "
";
+
+ /* output if we are playing a solo or a wedding */
+ echo "
";
+ if($game["solo-who"]>=0)
+ echo $player[$hash[$game["solo-who"]]]["name"]." is playing a ".$game["solo-what"]." solo!
\n";
+ else if($game["wedding"]>=0)
+ echo $player[$hash[$game["wedding"]]]["name"]." is playing a wedding!
\n";
+ echo "
";
+ echo "
Poverty not working yet!
".
+ " Schweinchen not working yet
".
+ "Bug: at the end of the game the winner of the last trick can add more points to his score by reloading the page
".
+ "If you find more bugs, please list them in the
wiki.Hit shift reload every now and then too.
\n";
+
+
/* figure out who needs to play next */
$next = $last + 1;
if ($next>=4)
$next -= 4 ;
+
+ /* if no one has played yet or we are at the start of a new trick */
if($last<0)
$next = $history[sizeof($history)-1][0];
@@ -889,6 +988,8 @@ else
{
$card = $_REQUEST["card"];
$mycards = explode(";",$player[$me]["cards"]);
+ $comment = $_REQUEST["comment"];
+ $comment = str_replace(":","",$comment); /*can't have ":" in comments */
/* do we have that card */
if(in_array($card,$mycards))
@@ -910,12 +1011,12 @@ else
/* add card to history, special case if this is the first card */
if($last<0)
{
- $history[sizeof($history)-1]="".$player[$me]["number"]."->".$card.":\n";
+ $history[sizeof($history)-1]="".$player[$me]["number"]."->".$card."->$comment:\n";
}
else
{
$tmp = explode(":",$history[sizeof($history)-1]);
- $tmp[sizeof($tmp)-1] = "".$player[$me]["number"]."->".$card.":";
+ $tmp[sizeof($tmp)-1] = "".$player[$me]["number"]."->".$card."->$comment:";
$history[sizeof($history)-1]=join(":",$tmp);
}
save_status();
@@ -925,14 +1026,6 @@ else
display_card($card);
echo "
\n";
- ?>
-\n";
/* is it our turn? */
- if($hash[$next]==$me && !isset($_REQUEST["card"]) && !isset($_REQUEST["win"]))
+ if($hash[$next]==$me && !isset($_REQUEST["card"]))
{
- echo "ITS YOUR TURN!
\n";
+ echo "Hello ".$player[$me]["name"].", it's your turn!
\n";
echo "Your cards are:
\n";
+ echo "
+\n";
+ echo "
\n";
}
}
}