X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=output.php;h=55cf0a53dfe8db171e39d34b546887504fc174aa;hp=000c2b2227b061ee405e1268a11cf15289959ca7;hb=a85c98f05cdf22065914272eb21e97cb8a344036;hpb=f91a22b698415eacda6af7403814caa6f34ad7e5 diff --git a/output.php b/output.php index 000c2b2..55cf0a5 100644 --- a/output.php +++ b/output.php @@ -16,9 +16,9 @@ function display_news() global $wiki; echo "
\n". " Please hit shift+reload.

\n". - " added local time display, let me know what you think

\n". - " 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,55 @@ 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"; + } +?> +

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) +
  • +
+

+
-

nothing implemented so far, but give it a try anyway ;)

+

Solo will work, but the first player will not change. Nothing else implemented.

@@ -191,10 +234,12 @@ function check_want_to_play($me) yes no
+ only on my turn
-\n"; echo "\n"; echo "\n"; @@ -215,11 +260,15 @@ function output_home_page() Login - + + - + + - + + +
@@ -230,6 +279,7 @@ function output_home_page() function output_header() { + global $REV; ?>

Welcome to E-Doko

+

Revision: