{"id":7647,"date":"2014-05-22T05:09:38","date_gmt":"2014-05-21T19:09:38","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=7647"},"modified":"2014-05-22T05:09:38","modified_gmt":"2014-05-21T19:09:38","slug":"phpjavascript-how-many-such-words-game-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/phpjavascript-how-many-such-words-game-tutorial\/","title":{"rendered":"PHP\/Javascript How Many Such Words Game Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/HowManyGame\/\"><img decoding=\"async\" style=\"float:left;border: 15px solid pink;\" alt=\"PHP How Many Such Words Game Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/PHP\/HowManyGame\/HowManyWords.jpg\" title=\"PHP\/Javascript How Many Such Words Game Game Tutorial\"  \/><\/a><p class=\"wp-caption-text\">PHP\/Javascript How Many Such Words Game Tutorial<\/p><\/div>\n<p>Do you like word games?  Today&#8217;s game tests your vocabulary 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 improve English vocabulary skills.<\/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.<\/p>\n<p>This <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/HowManyGame\/\" title=\"How Many Such Words\">game<\/a> has two parts to it for Javascript and PHP to respectively give you the user interaction as means of setting the criteria for your words and for you to make your guess on numbers of words, followed by the PHP looking up of the dictionary and send back results.<\/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\/HowManyGame\/\">live run<\/a>, in that you try to guess the number of words of your selected criteria exist in the dictionary.   You start with a score of 2000 and the mismatch between your guess and our dictionary&#8217;s findings is subtracted, and you try to keep your score positive for as many goes as you can.<\/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 listed word (optionally), for its dictionary meaning.   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 &#8220;how many such words&#8221; game (it could help you produce crosswords)!<\/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\/HowManyGame\/howmany.php_GETME\" title=\"howmany.php\">howmany.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='#d7647' onclick='var dv=document.getElementById(\"d7647\"); 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='d7647' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Do you like word games? Today&#8217;s game tests your vocabulary 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 improve English vocabulary skills. Programmers &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/phpjavascript-how-many-such-words-game-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,13,37],"tags":[396,476,652,932,997,1319,1454],"class_list":["post-7647","post","type-post","status-publish","format-standard","hentry","category-elearning","category-esl","category-tutorials","tag-esl","tag-game","tag-javascript","tag-php","tag-programming","tag-tutorial","tag-word-games"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/7647"}],"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=7647"}],"version-history":[{"count":0,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/7647\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=7647"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=7647"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=7647"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}