- Name: <input name="PlayerA" type="text" size="10" maxlength="20" />
- Name: <input name="PlayerB" type="text" size="10" maxlength="20" />
- Name: <input name="PlayerC" type="text" size="10" maxlength="20" />
- Name: <input name="PlayerD" type="text" size="10" maxlength="20" />
-
+<?php
+ /* ask for player names */
+ foreach( array("PlayerA","PlayerB","PlayerC","PlayerD") as $player)
+ {
+ srand((float) microtime() * 10000000);
+ $randkey = array_rand($names);
+ $rand = $names[$randkey];
+ echo " Name: <select name=\"$player\" size=\"1\" /> \n";
+ foreach($names as $name)
+ {
+ if($name==$rand)
+ {
+ echo " <option selected=\"selected\">$name</option>\n";
+ }
+ else
+ echo " <option>$name</option>\n";
+ }
+ echo " </select>\n";
+ }
+?>
+ <h2> 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>
+ <li> <input type="radio" name="dullen" value="none" /> just normal non-trump </li>
+ <li> <input type="radio" name="dullen" value="firstwins" /> first ten of hearts wins the trick </li>
+ <li> <input type="radio" name="dullen" value="secondwins" checked="checked" /> second ten of hearts wins the trick </li>
+ </ul>
+ </p>
+ <p> schweinchen (both foxes), only in normal games or silent solos:
+ <ul>
+ <li> <input type="radio" name="schweinchen" value="none" checked="checked" /> none </li>
+ <li> <input type="radio" name="schweinchen" value="both" />
+ both become highest trump (automatic call at beginning of the game)
+ </li>
+ <li> <input type="radio" name="schweinchen" value="second" />
+ first one normal, second one becomes highest (call during the game) </li>
+ <li> <input type="radio" name="schweinchen" value="secondaftercall" disabled="disabled" />
+ second one become highest only in case re/contra was announced (not working yet)
+ </li>
+ </ul>
+ </p>
+