X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=functions.php;h=29ca96de0891b206ecdec7ca1b07cd7bf6a42b94;hp=f77f8aead048b977016e6983c99a177d247e965c;hb=4d12bf8c86b466aff0ba2252ecb42830478a1a8a;hpb=ec799c6a6c714e390ee8729c6245dad23a7e5a2b diff --git a/functions.php b/functions.php index f77f8ae..29ca96d 100644 --- a/functions.php +++ b/functions.php @@ -272,27 +272,6 @@ function card_value($card) } } -function display_card($card) -{ - /* cards are only availabl for the odd values, e.g. 1.png, 3.png, ... - * convert even cards to the matching odd value */ - - if( $card/2 - (int)($card/2) == 0.5) - echo "\"".card_to_name($card)."\"\n"; - else - echo "\"".card_to_name($card-1)."\"\n"; - - return; -} - -function display_link_card($card) -{ - if( $card/2 - (int)($card/2) == 0.5) - echo "\"\"\n"; - else - echo "\"\"\n"; - return; -} function create_array_of_random_numbers() { @@ -307,108 +286,8 @@ function create_array_of_random_numbers() return $r; } -function check_want_to_play($me) -{ - ?> -
- Do you want to play a game of DoKo? - yes - no
- Do you want to get an email for every card played or only if it your move? - every card - only on my turn
-\n"; - echo "\n"; - echo "\n"; - echo "
\n"; - return; -} - -function check_for_sickness($me,$mycards) -{ - ?> -

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

- -
- - do you want to play solo? - -
- - "; - echo " no
\n"; - } - else - { - echo " no
\n"; - }; - - echo "do you have poverty?"; - if(count_trump($mycards)<4) - { - echo " yes"; - echo " no
\n"; - } - else - { - echo " no
\n"; - }; - - echo "do you have too many nines?"; - if(count_nines($mycards)>4) - { - echo " yes"; - echo " no
\n"; - } - else - { - echo " no
\n"; - }; - - echo "\n"; - echo "\n"; - - echo "
\n"; - - return; -} - -function display_status() -{ - echo "
"; - echo " is someone playing solo, etc?"; - echo "
\n"; - - return; -} - -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"; - return; -} function display_cards($me,$myturn) { @@ -435,19 +314,4 @@ function return_timezone($offset) return $zone; } -function output_form_for_new_game() -{ -?> -

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

-
- Name: - Name: - Name: - Name: - - -
- \ No newline at end of file