' . $topopt . ' '; $simpleword=""; $restis=""; $lang="en"; if (isset($_GET['lang'])) { $lang=str_replace("+", " ", urldecode($_GET['lang'])); if (strpos(strtolower($lsel), 'value="' . strtolower($lang) . '">') !== false) { $topopt=""; $lsel=' '; } } else if (isset($_POST['lang'])) { $lang=str_replace("+", " ", urldecode($_POST['lang'])); if (strpos(strtolower($lsel), 'value="' . strtolower($lang) . '">') !== false) { $topopt=""; $lsel=' '; } } function intoout($outt) { global $simpleword, $restis, $theword; if ($restis != "") { //file_put_contents("zzq.zzq", file_get_contents("zzq.zzq") . "\n" . "simpleword=" . $simpleword . " and restis=" . $restis . " and outt=" . $outt . " and theword[0]=" . $theword[0]); $eqsbits=explode("=", $restis); $ilk=strlen($outt); for ($ieq=(-1 + $ilk); $ieq>=0; $ieq--) { for ($jeq=(-1 + sizeof($eqsbits)); $jeq>=1; $jeq--) { //file_put_contents("zzqq.zzqq", file_get_contents("zzqq.zzqq") . "\n-" . $jeq . " was=" . $outt . " simpleword=" . $simpleword . " and restis=" . $restis . " and outt=" . $outt); // . $outt . " and becomes=" . str_replace(substr($eqsbits[-1 + $jeq], (-1 + strlen($eqsbits[-1 + $jeq])), 1), "&#" . explode($eqsbits[0 + $jeq], ";")[0] . ";", $outt)); if (substr($eqsbits[-1 + $jeq], (-1 + strlen($eqsbits[-1 + $jeq])), 1) == substr($outt, $ieq, 1)) { //file_put_contents("zzqq.zzqq", file_get_contents("zzqq.zzqq") . "\n+" . $jeq . " was=" . $outt . " simpleword=" . $simpleword . " and restis=" . $restis . " and outt=" . $outt); // . $outt . " and becomes=" . str_replace(substr($eqsbits[-1 + $jeq], (-1 + strlen($eqsbits[-1 + $jeq])), 1), "&#" . explode($eqsbits[0 + $jeq], ";")[0] . ";", $outt)); if ($ieq <= 1) { $afters=substr($outt, (1 + $ieq)); $outt="" . explode(";", $eqsbits[0 + $jeq])[0] . ";" . $afters; } else { $afters=substr($outt, (1 + $ieq)); $outt=substr($outt, 0, (-1 + $ieq)) . "" . explode(";", $eqsbits[0 + $jeq])[0] . ";" . $afters; } } } } //file_put_contents("zzqq.zzqq", file_get_contents("zzqq.zzqq") . "\n" . " becomes=" . $outt . " simpleword=" . $simpleword . " and restis=" . $restis . " and outt=" . $outt); // . $outt . " and becomes=" . str_replace(substr($eqsbits[-1 + $jeq], (-1 + strlen($eqsbits[-1 + $jeq])), 1), "&#" . explode($eqsbits[0 + $jeq], ";")[0] . ";", $outt)); } return $outt; } function reorder($tw) { global $simpleword, $restis; // restis=0=ε1=ν2=ο3=χ4=λ5=η6=τ7=ι8=κ9=ά //file_put_contents("zq.zq", file_get_contents("zq.zq") . "\n" . "simpleword=" . $simpleword . " and restis=" . $restis); $outt=""; $sofar=","; for ($ii=0; $ii=0; $ieq--) { for ($jeq=(-1 + sizeof($eqsbits)); $jeq>=1; $jeq--) { //file_put_contents("zqq.zqq", file_get_contents("zqq.zqq") . "\n" . $jeq . " was=" . $outt); // . $outt . " and becomes=" . str_replace(substr($eqsbits[-1 + $jeq], (-1 + strlen($eqsbits[-1 + $jeq])), 1), "&#" . explode($eqsbits[0 + $jeq], ";")[0] . ";", $outt)); if (substr($eqsbits[-1 + $jeq], (-1 + strlen($eqsbits[-1 + $jeq])), 1) == substr($outt, $ieq, 1)) { if ($ieq <= 1) { $afters=substr($outt, (1 + $ieq)); $outt="" . explode(";", $eqsbits[0 + $jeq])[0] . ";" . $afters; } else { $afters=substr($outt, (1 + $ieq)); $outt=substr($outt, 0, (-1 + $ieq)) . "" . explode(";", $eqsbits[0 + $jeq])[0] . ";" . $afters; } } } } //file_put_contents("zqq.zqq", file_get_contents("zqq.zqq") . "\n" . " becomes=" . $outt); // . $outt . " and becomes=" . str_replace(substr($eqsbits[-1 + $jeq], (-1 + strlen($eqsbits[-1 + $jeq])), 1), "&#" . explode($eqsbits[0 + $jeq], ";")[0] . ";", $outt)); } return $outt; } $theg = "w"; $tablehtml = ""; $numtoguess = 0; $score = "0"; $outof = "0"; $eleven="11"; $thirteen="13"; if (isset($_GET['level'])) { if ($_GET['level'] == 'easiest') { $eleven="3"; $thirteen="5"; } else if ($_GET['level'] == 'easy') { $eleven="5"; $thirteen="8"; } else if ($_GET['level'] == 'hard') { $eleven="8"; $thirteen="11"; } else if ($_GET['level'] == 'difficult') { $eleven="11"; $thirteen="13"; } else { $eleven="11"; $thirteen="13"; } } else if (isset($_GET['easiest'])) { $eleven="3"; $thirteen="5"; } else if (isset($_GET['easy'])) { $eleven="5"; $thirteen="8"; } else if (isset($_GET['hard'])) { $eleven="8"; $thirteen="11"; } else if (isset($_GET['difficult'])) { $eleven="11"; $thirteen="13"; } else { $eleven="11"; $thirteen="13"; } //$theword = ""; $theunderline = array("","","",""); $inorder = array(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25); $outoforder = array(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25); $sparewsarray = array("", // "01F311", "0026F3", "0026BD", "00263C", "00263D", "00263E", "01F311", "0026F3", "0026BD", "0026f5", "F09F91A0", "F09F9193", "F09F9098", "F09F9092", "F09F8E89", "F09F8DB0", "F09F8DA9", "F09F8DA8", "F09F8DA7", "F09F8DA3", "F09F8DB1", "F09F8E88", "F09F8EA7", "F09F8EA8", "F09F8EB5", "F09F8F88", "F09F9099", "F09F909E", "F09F90B6", "F09F90BC", "F09F90BE", "F09F938A", "F09F93A2", "F09F91BC", "F09F90AB", "F09F90A8", "F09F9097", "F09F8F80", "F09F8EB7", "F09F8EA9", "F09F8DAE", "F09F8D92", "F09F8F80", "F09F8C88", "F09F9AB2", "F09F9AA2", "F09F9A99", "F09F9A87", "F09F9A8F", "F09F9AA7", "F09F9AAA", "F09F9A83", "F09F9A87", "F09F9881", "F09F9882", "F09F98B8", "F09F9A92", "F09F9A87", "F09F9B80", "F09F8CB4", "F09F8CB5", "F09F8CB7", "F09F8C9F", "F09F8CBD", "F09F8CBE", "F09F8D84", "F09F8DB7", "F09F8D8F", "F09F8D9F", "F09F8DB5", "F09F8C89", "F09F8C8A", "F09F8C8B", "F09F8C87", "F09F8C86", "F09F8C81", "F09F8C82", "F09F8C82", "F09F8C83", "F09F8C84", "E29BAA", "E29BB2", "E29BBA", "E29B83", "F09F9A80", "F09F97BB", "F09F97BC", "F09F97BD", "F09F97BF", "F09F90A7", "F09F998B", "F09F9988", "F09F9989", "F09F998C", "F09F9896"); $wsarray = array("", // "01F311", "0026F3", "0026BD", "00263C", "00263D", "00263E", "01F311", "0026F3", "0026BD", "0026f5", "\xF0\x9F\x91\xA0", "\xF0\x9F\x91\x93", "\xF0\x9F\x90\x98", "\xF0\x9F\x90\x92", "\xF0\x9F\x8E\x89", "\xF0\x9F\x8D\xB0", "\xF0\x9F\x8D\xA9", "\xF0\x9F\x8D\xA8", "\xF0\x9F\x8D\xA7", "\xF0\x9F\x8D\xA3", "\xF0\x9F\x8D\xB1", "\xF0\x9F\x8E\x88", "\xF0\x9F\x8E\xA7", "\xF0\x9F\x8E\xA8", "\xF0\x9F\x8E\xB5", "\xF0\x9F\x8F\x88", "\xF0\x9F\x90\x99", "\xF0\x9F\x90\x9E", "\xF0\x9F\x90\xB6", "\xF0\x9F\x90\xBC", "\xF0\x9F\x90\xBE", "\xF0\x9F\x93\x8A", "\xF0\x9F\x93\xA2", "\xF0\x9F\x91\xBC", "\xF0\x9F\x90\xAB", "\xF0\x9F\x90\xA8", "\xF0\x9F\x90\x97", "\xF0\x9F\x8F\x80", "\xF0\x9F\x8E\xB7", "\xF0\x9F\x8E\xA9", "\xF0\x9F\x8D\xAE", "\xF0\x9F\x8D\x92", "\xF0\x9F\x8F\x80", "\xF0\x9F\x8C\x88", "\xF0\x9F\x9A\xB2", "\xF0\x9F\x9A\xA2", "\xF0\x9F\x9A\x99", "\xF0\x9F\x9A\x87", "\xF0\x9F\x9A\x8F", "\xF0\x9F\x9A\xA7", "\xF0\x9F\x9A\xAA", "\xF0\x9F\x9A\x83", "\xF0\x9F\x9A\x87", "\xF0\x9F\x98\x81", "\xF0\x9F\x98\x82", "\xF0\x9F\x98\xB8", "\xF0\x9F\x9A\x92", "\xF0\x9F\x9A\x87", "\xF0\x9F\x9B\x80", "\xF0\x9F\x8C\xB4", "\xF0\x9F\x8C\xB5", "\xF0\x9F\x8C\xB7", "\xF0\x9F\x8C\x9F", "\xF0\x9F\x8C\xBD", "\xF0\x9F\x8C\xBE", "\xF0\x9F\x8D\x84", "\xF0\x9F\x8D\xB7", "\xF0\x9F\x8D\x8F", "\xF0\x9F\x8D\x9F", "\xF0\x9F\x8D\xB5", "\xF0\x9F\x8C\x89", "\xF0\x9F\x8C\x8A", "\xF0\x9F\x8C\x8B", "\xF0\x9F\x8C\x87", "\xF0\x9F\x8C\x86", "\xF0\x9F\x8C\x81", "\xF0\x9F\x8C\x82", "\xF0\x9F\x8C\x82", "\xF0\x9F\x8C\x83", "\xF0\x9F\x8C\x84", "\xE2\x9B\xAA", "\xE2\x9B\xB2", "\xE2\x9B\xBA", "\xE2\x9B\x83", "\xF0\x9F\x9A\x80", "\xF0\x9F\x97\xBB", "\xF0\x9F\x97\xBC", "\xF0\x9F\x97\xBD", "\xF0\x9F\x97\xBF", "\xF0\x9F\x90\xA7", "\xF0\x9F\x99\x8B", "\xF0\x9F\x99\x88", "\xF0\x9F\x99\x89", "\xF0\x9F\x99\x8C", "\xF0\x9F\x98\x96"); $azorder = array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"); $eazorder = array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"); $zazorder = array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"); $wssofar = ";"; $ws = rand(1, (sizeof($wsarray) - 2)); for ($itr=0; $itr=0; $ieq--) { for ($jeq=(-1 + sizeof($eqsbits)); $jeq>=1; $jeq--) { //file_put_contents("zzqq.zzqq", file_get_contents("zzqq.zzqq") . "\n-" . $jeq . " was=" . $outt . " simpleword=" . $simpleword . " and restis=" . $restis . " and outt=" . $outt); // . $outt . " and becomes=" . str_replace(substr($eqsbits[-1 + $jeq], (-1 + strlen($eqsbits[-1 + $jeq])), 1), "&#" . explode($eqsbits[0 + $jeq], ";")[0] . ";", $outt)); if (substr($eqsbits[-1 + $jeq], (-1 + strlen($eqsbits[-1 + $jeq])), 1) == substr($theword[0], $ieq, 1)) { //file_put_contents("zzqq.zzqq", file_get_contents("zzqq.zzqq") . "\n+" . $jeq . " was=" . $outt . " simpleword=" . $simpleword . " and restis=" . $restis . " and outt=" . $outt); // . $outt . " and becomes=" . str_replace(substr($eqsbits[-1 + $jeq], (-1 + strlen($eqsbits[-1 + $jeq])), 1), "&#" . explode($eqsbits[0 + $jeq], ";")[0] . ";", $outt)); if ($ieq <= 1) { $afters=substr($theword[0], (1 + $ieq)); $theword[0]="" . explode(";", $eqsbits[0 + $jeq])[0] . ";" . $afters; } else { $afters=substr($theword[0], (1 + $ieq)); $theword[0]=substr($theword[0], 0, (-1 + $ieq)) . "" . explode(";", $eqsbits[0 + $jeq])[0] . ";" . $afters; } } } } } } //for ($jeq=1; $jeq
Your Guess:

  
"; //$theword[1] = strtolower(file_get_contents("http://" . $_SERVER['SERVER_NAME'] . str_replace("::",":",":" . str_replace("~","",str_replace(":443~","",str_replace(":80~","",(":" . $_SERVER['SERVER_PORT'] . "~"))))) . "/PHP/surprise.php?min=11&max=13&common=touch&youllneverfindthis=y")); //$theword[2] = strtolower(file_get_contents("http://" . $_SERVER['SERVER_NAME'] . str_replace("::",":",":" . str_replace("~","",str_replace(":443~","",str_replace(":80~","",(":" . $_SERVER['SERVER_PORT'] . "~"))))) . "/PHP/surprise.php?min=11&max=13&common=touch&youllneverfindthis=y")); //$theword[3] = strtolower(file_get_contents("http://" . $_SERVER['SERVER_NAME'] . str_replace("::",":",":" . str_replace("~","",str_replace(":443~","",str_replace(":80~","",(":" . $_SERVER['SERVER_PORT'] . "~"))))) . "/PHP/surprise.php?min=11&max=13&common=touch&youllneverfindthis=y")); //$theword[4] = strtolower(file_get_contents("http://" . $_SERVER['SERVER_NAME'] . str_replace("::",":",":" . str_replace("~","",str_replace(":443~","",str_replace(":80~","",(":" . $_SERVER['SERVER_PORT'] . "~"))))) . "/PHP/surprise.php?min=11&max=13&common=touch&youllneverfindthis=y")); //$theword[5] = strtolower(file_get_contents("http://" . $_SERVER['SERVER_NAME'] . str_replace("::",":",":" . str_replace("~","",str_replace(":443~","",str_replace(":80~","",(":" . $_SERVER['SERVER_PORT'] . "~"))))) . "/PHP/surprise.php?min=11&max=13&common=touch&youllneverfindthis=y")); } if (isset($_GET['okguesslist'])) { if (strpos($_GET['okguesslist'], "~") !== false) { $okguesslist = explode("~", $_GET['okguesslist']); } else { $okguesslist = array($_GET['okguesslist']); } } else { $okguesslist = array($azorder[$donottouch]); } for ($m=0; $m<26; $m++) { $asis = 0; for ($k=0; $k"; if ($asis == 1) { $theunderline[$j] .= strtolower(substr($theword[$j], $i, 1)); $tablehtml .= "" . strtolower(substr($theword[$j], $i, 1)) . ""; } else { $numtoguess = $numtoguess + 1; $kk = 0; for ($m=0; $m<26; $m++) { if (strtolower(substr($theword[$j], $i, 1)) == strtolower($azorder[$m])) $kk = $m; } $theunderline[$j] .= strtoupper($azorder[$outoforder[$kk]]); $tablehtml .= ''; $tablehtml .= ''; } $tablehtml .= ""; } $tablehtml .= ""; } $tablehtml .= "
"; if (isset($_GET['score'])) { $score=$_GET['score']; } if (isset($_GET['outof'])) { $outof=$_GET['outof']; } if (isset($_POST['score'])) { $score=$_POST['score']; } if (isset($_POST['outof'])) { $outof=$_POST['outof']; } echo "\n" . '' . "\n"; echo "\n" . '' . "\n"; echo "\n" . '' . "\n"; echo "\n" . '' . "\n"; echo "\n" . '' . "\n"; echo "\n" . 'Anagrams - RJM Programming - February, 2021 ... thanks to NetBeans Anagrams' . "\n"; echo "\n" . '' . "\n"; echo "\n" . ' \n"; } else { echo "\n \n"; } echo "
"; if (isset($_GET['level'])) { if ($_GET['level'] == 'easiest') { echo "

" . $lsel . " Anagrams

"; } else if ($_GET['level'] == 'easy') { echo "

" . $lsel . " Anagrams

"; } else if ($_GET['level'] == 'hard') { echo "

" . $lsel . " Anagrams

"; } else if ($_GET['level'] == 'difficult') { echo "

" . $lsel . " Anagrams

"; } else { echo "

" . $lsel . " Anagrams

"; } } else if (isset($_GET['easiest'])) { echo "

" . $lsel . " Anagrams

"; } else if (isset($_GET['easy'])) { echo "

" . $lsel . " Anagrams

"; } else if (isset($_GET['hard'])) { echo "

" . $lsel . " Anagrams

"; } else if (isset($_GET['difficult'])) { echo "

" . $lsel . " Anagrams

"; } else { echo "

" . $lsel . " Anagrams

"; } global $score, $outof; if ($outof < $score) { $outof = $score; } echo "\n

Score: " . $score . " / " . $outof . "

\n"; echo "\n" . '
' . "\n"; ?>