{"id":6950,"date":"2014-03-24T05:04:44","date_gmt":"2014-03-23T18:04:44","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=6950"},"modified":"2014-03-24T05:04:44","modified_gmt":"2014-03-23T18:04:44","slug":"phpjavascript-find-those-words-game-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/phpjavascript-find-those-words-game-tutorial\/","title":{"rendered":"PHP\/Javascript Find Those Words Game Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/FindThoseWords\/\"><img decoding=\"async\" style=\"float:left;border: 15px solid pink;\" alt=\"PHP Find Those Words Game Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/PHP\/FindThoseWords\/FindThoseWords.jpg\" title=\"PHP\/Javascript Find Those Words Game Tutorial\"  \/><\/a><p class=\"wp-caption-text\">PHP\/Javascript Find Those 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 learn even more English vocabulary.<\/p>\n<p>Today&#8217;s tutorial game which we will call <i>&#8220;Find Those Words&#8221;<\/i> allows the user to change one letter in the computer&#8217;s words to form a valid new word, and the score increases for the user with a point for each letter of this new word.   Once you use up all the words you know, or get cornered without being able to form a new valid English word, you can choose to create a new computer-generated word.<\/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\/FindThoseWords\/findthosewords.php_GETME\" title=\"findthosewords.php\">findthosewords.php<\/a><\/p>\n<p>This <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/FindThoseWords\/\" title=\"Find Those Words\">game<\/a> has two parts to it for PHP and Javascript to respectively create the words to start the game, and 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\/FindThoseWords\/\">live run<\/a>.  For today&#8217;s game there is a link to Email Your Friends that has a body link exactly simulating your current state of play, and there is a Chat Room button link, should Chat be your &#8220;thang&#8221;.<\/p>\n<p>Anyway, see how you go with this game that tests your vocabulary skills!<\/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\/FindThoseWords\/findthosewords.php_GETME\" title=\"findthosewords.php\">findthosewords.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='#d6950' onclick='var dv=document.getElementById(\"d6950\"); 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='d6950' 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 learn even more English vocabulary. &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/phpjavascript-find-those-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":[281,396,477,576,652,932,997,1319,1454],"class_list":["post-6950","post","type-post","status-publish","format-standard","hentry","category-elearning","category-esl","category-tutorials","tag-css","tag-esl","tag-games-2","tag-html","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\/6950"}],"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=6950"}],"version-history":[{"count":0,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/6950\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=6950"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=6950"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=6950"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}