From b0430639c8bb809dc46252ad240bb883a0937527 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sat, 13 Sep 2008 09:23:34 -0700 Subject: BUGFIX: added missing icons for rules made some very simple icons for displaying the rules Signed-off-by: Arun Persaud --- include/game.php | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) (limited to 'include/game.php') diff --git a/include/game.php b/include/game.php index 8feda71..b509de3 100644 --- a/include/game.php +++ b/include/game.php @@ -126,8 +126,41 @@ if(myisset('call') && $_REQUEST['call'] == '0' && can_call(0,$me)) if($session) { echo "
\n"; - echo "
Rules (+icons for rules) \n"; - echo "
\n"; + echo "
Rules: "; + switch($RULES['dullen']) + { + case 'none': + echo "\"not\n"; break; + case 'firstwins': + echo "\"ten\n"; break; + case 'secondwins': + echo "\"second\n"; break; + } + switch($RULES['schweinchen']) + { + case 'none': + echo "\"no\n"; break; + case 'both': + echo "\"two\n"; break; + case 'second': + echo "\"second\n"; break; + case 'secondaftercall': + echo "\"second\n"; break; + } + switch($RULES['call']) + { + case '1st-own-card': + echo "\"1st-own-card\"\n"; break; + case '5th-card': + echo "\"5th-card\"\n"; break; + case '9-cards': + echo "\"9-cards\"\n"; break; + } + echo "
\n"; echo " 10ofhearts : {$RULES['dullen']}
\n"; echo " schweinchen: {$RULES['schweinchen']}
\n"; echo " call: {$RULES['call']}
\n"; -- cgit v1.2.3-18-g5258