{"id":54859,"date":"2022-03-02T03:01:39","date_gmt":"2022-03-01T17:01:39","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=54859"},"modified":"2022-02-28T16:07:48","modified_gmt":"2022-02-28T06:07:48","slug":"phpjavascript-crossword-game-clues-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/phpjavascript-crossword-game-clues-tutorial\/","title":{"rendered":"PHP\/Javascript Crossword Game Clues Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Crossword\/\"><img decoding=\"async\" style=\"float:left;border: 15px solid pink;\" alt=\"PHP Crossword Game Clues Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Crossword\/Crossword.gif\" title=\"PHP\/Javascript Crossword Game Clues Tutorial\"  \/><\/a><p class=\"wp-caption-text\">PHP\/Javascript Crossword Game Clues Tutorial<\/p><\/div>\n<p>We give thanks to those sharing types in the Internet wooooorrrrllllddd.  The context for this comes from a revisit of the (English) Crossword web application of <a title='PHP\/Javascript Crossword Game Tutorial' href='#php\/jcgt'>PHP\/Javascript Crossword Game Tutorial<\/a>.  We could see from trying it, the &#8220;third party&#8221; aspects of how the crossword clues was put together no longer worked, and so we happened across an alternative (PHP code <font color=blue>re<\/font>arrangement) &#8230;<\/p>\n<p>&lt;?php<br \/>\n<code><br \/>\n         <font color=blue>\/\/<\/font>$ahuh = file_get_contents(\"http:\/\/www.wordplays.com\/crossword-clues\/\" . $pword);<br \/>\n         <font color=blue>\/\/<\/font>$ahuhs = explode(\"Show clues for the answer \", $ahuh);<br \/>\n         <font color=blue>$ahuh = file_get_contents(\"<a target=_blank title='Thanks' href='http:\/\/crossword-solver.io\/clue\/'>HTTP:\/\/crossword-solver.io\/clue\/<\/a>\" . $pword . \"\/\");<br \/>\n         $ahuhs = explode(\"<\/p>\n<td>\", $ahuh);<\/font><br \/>\n<\/code><br \/>\n?&gt;<\/p>\n<p> &#8230; and things, then, fall into place using <a target=_blank title='crossword.php' href='http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/Crossword\/crossword.php-GETME'>the changed<\/a> <a target=_blank title='crossword.php' href='http:\/\/www.rjmprogramming.com.au\/PHP\/Crossword\/crossword.php-GETME'>crossword.php<\/a> <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Crossword\/\">Crossword Game<\/a>.<\/p>\n<p><!--p>You can also see this play out at WordPress 4.1.1's <a target=_blank  href='\/\/www.rjmprogramming.com.au\/ITblog\/phpjavascript-crossword-game-clues-tutorial\/'>PHP\/Javascript Crossword Game Clues Tutorial<\/a>.<\/p-->\n<hr>\n<p id='php\/jcgt'>Previous relevant <a target=_blank title='PHP\/Javascript Crossword Game Tutorial' href='\/\/www.rjmprogramming.com.au\/ITblog\/php\/javascript-crossword-game-tutorial\/'>PHP\/Javascript Crossword Game Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Crossword\/\"><img decoding=\"async\" style=\"float:left;border: 15px solid pink;\" alt=\"PHP Crossword Game Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Crossword\/Crossword.jpg\" title=\"PHP\/Javascript Crossword Game Tutorial\"  \/><\/a><p class=\"wp-caption-text\">PHP\/Javascript Crossword Game Tutorial<\/p><\/div>\n<p>Do you like word games?  Today&#8217;s game tests your crossword skills in English.  It uses English words, based on the dictionary arrangements at its (web) server.   Maybe it would be a good game to help learn some English vocabulary.<\/p>\n<p>Programmers often use <a target_blank title='Words (unix) information from Wikipedia' href='http:\/\/en.wikipedia.org\/wiki\/Words_%28Unix%29'>Linux dictionary files<\/a> as a means to get a word list, and that list could be in any language, and for ours it is English, so to make it for another language, change the code inside the file_get_contents() call in <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Crossword\/crossword.php_GETME\" title=\"crossword.php\">crossword.php<\/a><\/p>\n<p>This <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Crossword\/\" title=\"Crossword\">game<\/a> has two parts to it for PHP and Javascript to respectively create the crossword words to use and arrange the user interaction.<\/p>\n<p>Hopefully you can figure the rules when you click the picture above for a <a target=_blank title=\"live run\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Crossword\/\">live run<\/a>, in that you are asked to supply the missing letters in the crossword grid presented to you, by clicking on an unsolved crossword grid letter.   You score if you complete the crossword, but be warned, without &#8220;peeking&#8221;, it is not easy.<\/p>\n<p>A big thanks goes to <a target=_blank title='Clues' href='http:\/\/www.wordplays.com\/'>wordplay|com<\/a> for help with the clues.   This website contains amazing ideas.<\/p>\n<p>Another big thanks goes to \u201cText Types in English\u201d by Mark Anderson and Kathy Anderson for the idea for the shape of the crossword grid, and so, with the design of the program.<\/p>\n<p>And yet another thank you to <a target=_blank title='The Free Dictionary' href='http:\/\/thefreedictionary.com'>The Free Dictionary<\/a> for its great online presence as a dictionary resource, for the functionality to point at a completed (coloured box) word, for its dictionary meaning (where it can &#8230; some words are a tad too esoteric &#8230; but am about to warn you it could be hard).   The image map &#8220;click parts of the picture&#8221; <a target=_blank title='Pointed at vocabulary tutorials' href='http:\/\/www.rjmprogramming.com.au\/wordpress\/?tag=vocabulary'>vocabulary ESL tutorials<\/a> at this blog use the same resource to explain dictionary information about clicked on &#8220;things&#8221;.<\/p>\n<p>Anyway, see how you go with this very challenging crossword game!<\/p>\n<p>Here is a link to some downloadable PHP (with Javascript) programming code you could rename to <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Crossword\/crossword.php_GETME\" title=\"crossword.php\">crossword.php<\/a><\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d6598' onclick='var dv=document.getElementById(\"d6598\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?cat=44\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d6598' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d54859' onclick='var dv=document.getElementById(\"d54859\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/word\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d54859' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>We give thanks to those sharing types in the Internet wooooorrrrllllddd. The context for this comes from a revisit of the (English) Crossword web application of PHP\/Javascript Crossword Game Tutorial. We could see from trying it, the &#8220;third party&#8221; aspects &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/phpjavascript-crossword-game-clues-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,15,37],"tags":[279,429,476,932,997,1319,1452,1453],"class_list":["post-54859","post","type-post","status-publish","format-standard","hentry","category-elearning","category-games","category-tutorials","tag-crossword","tag-file_get_contents","tag-game","tag-php","tag-programming","tag-tutorial","tag-word","tag-word-game"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/54859"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=54859"}],"version-history":[{"count":5,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/54859\/revisions"}],"predecessor-version":[{"id":54897,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/54859\/revisions\/54897"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=54859"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=54859"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=54859"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}