X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=output.php;h=d20d725af1fe1873da2bf9353868133ec0c8fbf9;hp=ef67cccc04961f41ac892b22fa24b6bc5ca50266;hb=0dd96314cb0fc3d40502d87f354c6fd61f35a3cd;hpb=686b0be45302319f7f30d38d129cee68ebfc12bf diff --git a/output.php b/output.php index ef67ccc..d20d725 100644 --- a/output.php +++ b/output.php @@ -39,7 +39,7 @@ function output_register() { echo "IMPORTANT: passwords are going over the net as clear text, so pick an easy password. No need to pick anything complicated here ;)

"; echo "TODO: convert timezone into a menu
\n"; - echo "TODO: figure out a way to handle passwrods
\n"; + echo "TODO: figure out a way to handle passwords
\n"; ?>
@@ -70,12 +70,16 @@ function output_register() function output_ask_for_new_game($playerA,$playerB,$playerC,$playerD,$oldgameid) { + global $RULES; + echo "Do you want to continue playing?(This will start a new game, with the next person as dealer.)\n"; echo "\n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; + echo " \n"; + echo " \n"; echo " \n"; echo " \n"; echo "\n"; @@ -86,18 +90,53 @@ function output_ask_for_new_game($playerA,$playerB,$playerC,$playerD,$oldgameid) function output_form_for_new_game($names) { ?> -

Please select four players

+

Players

+

Please select four players (or use the randomly pre-selected names)

\n"; - foreach($names as $name) - echo " \n"; + foreach($names as $name) + { + if($name==$rand) + { + echo " \n"; + } + else + echo " \n"; + } echo " \n"; + unset($names[$randkey]); } ?> - +

Rules

+ +

ten of hearts: +

    +
  • just normal non-trump
  • +
  • first ten of hearts wins the trick
  • +
  • second ten of hearts wins the trick
  • +
+

+

schweinchen (both foxes): +

    +
  • none
  • +
  • + both become highest trump (automatic call at beginning of the game) + (does not work yet)
  • +
  • + first one normal, second one becomes highest (call during the game) (does not work yet)
  • +
  • + second one become highest only in case re/contra was announced + (does not work yet)
  • +
+

+
no
+ only on my turn
-\n"; echo "\n"; echo "\n";