X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Foutput.php;h=79e42c276f130c879ee10f06deb9af6392b40b09;hp=018372b37c7542b75dafd8fa1f33f47a893c82b3;hb=c581cd05476d07f0fd17dab41cbb211a443fd57f;hpb=76ce476d3c48709bf6a69b3cc5bd333c4593d66b;ds=sidebyside diff --git a/include/output.php b/include/output.php index 018372b..79e42c2 100644 --- a/include/output.php +++ b/include/output.php @@ -123,10 +123,19 @@ function output_form_for_new_game($names)

+

Low trump

+

+ Player can't trump a fox, that is none of his trump is higher than a fox. + +

Scoring-related

(not yet implemented)

@@ -205,10 +214,11 @@ function display_link_card($card,$dir="english",$type="card") function output_check_for_sickness($me,$mycards) { + global $RULES; ?>
Thanks for joining the game...
- do you want to play solo? + Do you want to play solo?
\n"; }; - echo "Do you have too many nines?"; + echo "Do you have too many nines?"; if(count_nines($mycards)>4) { echo " yes"; @@ -256,6 +266,26 @@ function output_check_for_sickness($me,$mycards) echo " no
\n"; }; + if($RULES['lowtrump']=='cancel' || $RULES['lowtrump']=='poverty') + { + if($RULES['lowtrump']=='cancel') + echo "Do you have low trump (cancel game)?"; + else + echo "Do you have low trump (poverty)?"; + + if(check_low_trump($mycards)) + { + echo " yes"; + echo " no
\n"; + } + else + { + echo " no
\n"; + }; + } + else + echo ""; + echo "\n"; echo "\n"; @@ -364,7 +394,9 @@ function output_header()
-

Welcome to E-Doko

+ '._('Welcome to E-Doko').' '; +?>
"en", + "Deutsch" => "de" ); + + echo " \n"; + + return; +} + + function output_password_recovery($email,$password) { ?> @@ -556,7 +608,7 @@ function output_exchanged_cards() */ /* need some information about the game */ - global $gameid,$mygametype, $PREF,$me,$mystatus; + global $gameid,$mygametype, $PREF,$me,$mystatus, $RULES; /* some variables to track where the people with poverty are sitting */ $partnerpos1 = 0; @@ -573,7 +625,7 @@ function output_exchanged_cards() for($mypos=1;$mypos<5;$mypos++) { $usersick = DB_get_sickness_by_pos_and_gameid($mypos,$gameid); - if($usersick == 'poverty') + if($usersick == 'poverty' || ($RULES['lowtrump']=='poverty' && $usersick=='lowtrump')) if($povertypos1) $povertypos2 = $mypos; else