X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=output.php;h=55cf0a53dfe8db171e39d34b546887504fc174aa;hp=ef67cccc04961f41ac892b22fa24b6bc5ca50266;hb=a85c98f05cdf22065914272eb21e97cb8a344036;hpb=686b0be45302319f7f30d38d129cee68ebfc12bf;ds=sidebyside diff --git a/output.php b/output.php index ef67ccc..55cf0a5 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,52 @@ 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"; } ?> - +

Rules

+

Some areas are grayed out which means that the rule is not implemented yet and therefore cannot be selected

+

ten of hearts: +

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

+

schweinchen (both foxes), only in normal games or silent solos: +

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

+
no
+ only on my turn
-\n"; echo "\n"; echo "\n"; @@ -220,11 +260,15 @@ function output_home_page() Login - + + - + + - + + +