From 4a0d379346ba2663d019b3e2e5ed28d30e0008ba Mon Sep 17 00:00:00 2001 From: arun Date: Sat, 3 Feb 2007 05:29:17 +0000 Subject: when starting a new game, games can't be selected twice anymore and are randomly pre-selected --- output.php | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'output.php') diff --git a/output.php b/output.php index ef67ccc..bfebf4a 100644 --- a/output.php +++ b/output.php @@ -86,15 +86,26 @@ function output_ask_for_new_game($playerA,$playerB,$playerC,$playerD,$oldgameid) function output_form_for_new_game($names) { ?> -

Please select four players

+

Please select four players (or use the randomly pre-selected names)

\n"; - foreach($names as $name) - echo " \n"; + foreach($names as $name) + { + if($name==$rand) + { + echo " \n"; + } + else + echo " \n"; + } echo " \n"; + unset($names[$randkey]); } ?> -- cgit v1.2.3-18-g5258