X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=output.php;h=d20d725af1fe1873da2bf9353868133ec0c8fbf9;hp=000c2b2227b061ee405e1268a11cf15289959ca7;hb=0dd96314cb0fc3d40502d87f354c6fd61f35a3cd;hpb=f91a22b698415eacda6af7403814caa6f34ad7e5;ds=sidebyside diff --git a/output.php b/output.php index 000c2b2..d20d725 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,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)
  • +
+

+
-

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 +235,12 @@ function check_want_to_play($me) yes 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: