X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=output.php;h=d20d725af1fe1873da2bf9353868133ec0c8fbf9;hp=21ce2fc14e03145139681cba6edfcd2e658c5d0f;hb=0dd96314cb0fc3d40502d87f354c6fd61f35a3cd;hpb=68e916d4e488f110dcdab69d7827e8b2f4129cd4 diff --git a/output.php b/output.php index 21ce2fc..d20d725 100644 --- a/output.php +++ b/output.php @@ -16,9 +16,9 @@ function display_news() global $wiki; echo "
\n". " Please hit shift+reload.

\n". - " the table and the names are now always shown.

". - " If you find more bugs, please list them in the wiki.\n
\n"; + " The server now keeps score... (only from now on)

". + " If you find more bugs, please list them in the wiki.\n\n"; return; } @@ -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"; @@ -83,16 +87,56 @@ function output_ask_for_new_game($playerA,$playerB,$playerC,$playerD,$oldgameid) return; } -function output_form_for_new_game() +function output_form_for_new_game($names) { ?> -

Please add 4 names, please make sure that the names are correct!

+

Players

+

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

- Name: - Name: - Name: - Name: - + \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"; @@ -230,6 +276,7 @@ function output_home_page() function output_header() { + global $REV; ?>

Welcome to E-Doko

+

Revision: