/*
Tic-Tac-Toe (temp out of order)
*/ $Category = "Things"; $words = "TUNAFISH CHOCOLATE CHIP COOKIE BANANA BEST FRIEND COMPUTER TELEPHONE HANGNAIL SPEAKER MICROPHONE PAPER PLATE NAPKINS WRENCH GOOD BOOK FISH BOWL DEAD HORSE COMPACT DISK ANNOYING FRIEND TV DINNER COKE BOTTLE PISTACHIOS BOW SPHYNX PAYCHECK NOTEBOOK WATER BOTTLE MOVING VAN ELEPHANT ENCYCLOPEDIA VW JETTA ANTIPERSPIRANT GLOVES AND HAT"; $alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; $additional_letters = " -.,;!?%&0123456789"; $len_alpha = strlen($alpha); $word = $_GET[word]; $letters_used = $_GET[letters_used]; $links = ""; if(isset($_GET["letters"])) $letters=$_GET["letters"]; if(!isset($letters)) $letters=""; $self = $PHP_SELF; $max_wrong = 6; $words = strtoupper($words); $words_ind = explode("\n",$words); srand ((double)microtime()*1000000); $all_letters=$letters.$additional_letters; $wrong = 0; if ($word == '') { $word = rand(1,count($words_ind)) - 1; } $word_line=''; $word_guessing = trim($words_ind[$word]); $done = 1; for ($x=0; $x < strlen($word_guessing); $x++) { if (strstr($all_letters, $word_guessing[$x])) { if ($word_guessing[$x]==" ") $word_line.=" "; else $word_line.=$word_guessing[$x]; } else { $word_line.="_ "; $done = 0; } } if (!$done) { for ($c=0; $c<$len_alpha; $c++) { if (strstr($letters_used, $alpha[$c])) { if (strstr($words_ind[$n], $alpha[$c])) {$links .= "\n$alpha[$c] "; } else { $links .= "\n$alpha[$c] "; $wrong++; } } else { $links .= "\n$alpha[$c] "; } } $nwrong=$wrong; if ($nwrong>6) $nwrong=6; $hm_disp_block .= "\n
\n
\n";
if ($wrong >= $max)
{
$n++;
if ($n>(count($words)-1)) $n=0;
$hm_disp_block .= "
SORRY, YOU ARE HANGED!!!
";
if (strstr($word, " ")) $term="phrase"; else $term="word";
$hm_disp_block .= "The $term was \"$word\"
\n";
$hm_disp_block .= "Play again.\n\n";
}
else
{
$hm_disp_block .= " # Wrong Guesses Left: ".($max-$wrong)."
\n";
$hm_disp_block .= "
Choose a letter:
\n";
$hm_disp_block .= "$links\n";
}
}
if (($dir == "rbemail") || ($dir == "remail")) {
$email_greeting = "Thank you for reading my email and welcome to my site Rebekah Brown!";
}
if ($dir == "ademail") {
$email_greeting = "Thank you for reading my email and welcome to my site Anita De!";
}
if ($dir == "tdsemail") {
$email_greeting = "Thank you for reading my email and welcome to my site Tiffany Spink!";
}
if ($dir == "djremail") {
$email_greeting = "Thank you for reading my email and welcome to my site Daniel Richardson!";
}
?>
Jonathan Charpie
3733 Zane Ave N
Crystal, MN 55422
Bruce Charpie
3733 Zane Ave N
Crystal, MN 55422
![]() |
|
|