global $RULES;
echo "Do you want to continue playing?(This will start a new game, with the next person as dealer.)\n";
- echo "<form action=\"index.php\" method=\"post\">\n";
echo " <input type=\"hidden\" name=\"PlayerA\" value=\"$playerA\" />\n";
echo " <input type=\"hidden\" name=\"PlayerB\" value=\"$playerB\" />\n";
echo " <input type=\"hidden\" name=\"PlayerC\" value=\"$playerC\" />\n";
echo " <input type=\"hidden\" name=\"call\" value=\"".$RULES["call"]."\" />\n";
echo " <input type=\"hidden\" name=\"followup\" value=\"$oldgameid\" />\n";
echo " <input type=\"submit\" value=\"keep playing\" />\n";
- echo "</form>\n";
return;
}
<h2> Players </h2>
<p>Please select four players (or use the randomly pre-selected names)</p>
<form action="index.php" method="post">
+
+ <div class="table">
+ <img src="pics/table.png" alt="table" />
<?php
/* ask for player names */
+ $i=0;
foreach( array("PlayerA","PlayerB","PlayerC","PlayerD") as $player)
{
srand((float) microtime() * 10000000);
$randkey = array_rand($names);
$rand = $names[$randkey];
+ echo "<span class=\"table".$i."\">";
+ $i++;
echo " Name: <select name=\"$player\" size=\"1\" /> \n";
foreach($names as $name)
{
else
echo " <option>$name</option>\n";
}
- echo " </select>\n";
+ echo " </select></span>\n";
}
?>
- <h2> Rules </h2>
+ </div>
+ <h2 class="rules"> Rules </h2>
<p> Some areas are grayed out which means that the rule is not implemented yet and therefore cannot be selected </p>
<p> ten of hearts:
<ul>
function hl(num) {
if(document.getElementById){
var i;
- for(i=1;i<13;i++){
+ for(i=1;i<14;i++){
if(document.getElementById("trick"+i))
document.getElementById("trick"+i).style.display = 'none';
}
function high_last(){
if(document.getElementById){
var i;
- for(i=12;i>0;i--) {
+ for(i=13;i>0;i--) {
if(document.getElementById("trick"+i))
{
hl(i);