{"id":51099,"date":"2020-12-06T03:01:26","date_gmt":"2020-12-05T17:01:26","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=51099"},"modified":"2020-12-06T08:25:09","modified_gmt":"2020-12-05T22:25:09","slug":"connective-english-word-sentence-game-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/connective-english-word-sentence-game-primer-tutorial\/","title":{"rendered":"Connective English Word Sentence Game Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/connective_sentences.php\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"Connective English Word Sentence Game Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/PHP\/connective_sentences.jpg\" title=\"Connective English Word Sentence Game Primer Tutorial\" \/><\/a><p class=\"wp-caption-text\">Connective English Word Sentence Game Primer Tutorial<\/p><\/div>\n<p>On a similar &#8220;English word&#8221; theme to yesterday&#8217;s <a title='Word Guessing or Synonym Game for Two Tutorial' href='#wgsgtt'>Word Guessing or Synonym Game for Two Tutorial<\/a> today we want to create an &#8230;<\/p>\n<ul>\n<li>online game &#8230;<\/li>\n<li>constructing English sentences &#8230;<\/li>\n<li>via English words &#8230; but, perhaps a tad obtusely &#8230;<\/li>\n<li>our users are encouraged to form the sentences on &#8220;the scaffolding&#8221; of those short words of (English language) life &#8230; our so called &#8220;connective words&#8221; (in English) whether they be conjunctions or adverbs <font size=1>(or some small verbs)<\/font> or pronouns or articles or prepositions<\/li>\n<\/ul>\n<p>There is another &#8220;data source&#8221; similarity to yesterday&#8217;s modus operandi (that used &#8220;\/usr\/share\/dict\/words&#8221; inbuilt dictionary of words that comes with Linux (and macOS) &#8220;out of the box&#8221;), as we again use a resource from that inbuilt dictionary, only this time referencing (the extremely useful) &#8220;\/usr\/share\/dict\/connectives&#8221; file of English connective (and invariably short) words.<\/p>\n<p>No scoring with our game today, just the idea the user might want to share via Email or SMS their &#8220;English Connective Word Based Sentence&#8221; achievements!<\/p>\n<p>So feel free to try today&#8217;s PHP <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/connective_sentences.php_GETME\" title=\"connective_sentences.php\">connective_sentences.php<\/a> code <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/connective_sentences.php\" title=\"Click picture\">live run<\/a> game.<\/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\/connective-english-word-sentence-game-primer-tutorial\/'>Connective English Word Sentence Game Primer Tutorial<\/a>.<\/p-->\n<hr>\n<p id='wgsgtt'>Previous relevant <a target=_blank title='Word Guessing or Synonym Game for Two Tutorial' href='\/\/www.rjmprogramming.com.au\/ITblog\/word-guessing-or-synonym-game-for-two-tutorial\/'>Word Guessing or Synonym Game for Two Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/wordguessgame.html\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"Word Guessing or Synonym Game for Two Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/wordguesssynonym.jpg\" title=\"Word Guessing or Synonym Game for Two Tutorial\" \/><\/a><p class=\"wp-caption-text\">Word Guessing or Synonym Game for Two Tutorial<\/p><\/div>\n<p>The reminder of just how brilliant is the &#8230;<\/p>\n<ul>\n<li><a target=_blank title='WordReference website' href='http:\/\/wordreference.com'>WordReference<\/a> website &#8230; the reminder occurring when we presented the recent <a target=_blank title='Italian French Spanish Verb Conjugation Emoji Image Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/italian-french-spanish-verb-conjugation-emoji-image-tutorial\/'>Italian French Spanish Verb Conjugation Emoji Image Tutorial<\/a> &#8230; combined with &#8230;<\/li>\n<li>the search for a web application with synergy, leading us to <a title='Word Guessing Game for Two Primer Tutorial' href='#wggtpt'>Word Guessing Game for Two Primer Tutorial<\/a> &#8230; has us, today &#8230;<\/li>\n<\/ul>\n<p> &#8230; adding onto &#8230;<\/p>\n<ul>\n<li>Word Guess &#8220;buzzing in&#8221; for two players &#8230; with &#8230;<\/li>\n<li>Synonym (in English) Guess &#8220;buzzing in&#8221; for two players<\/li>\n<\/ul>\n<p> &#8230; as some additional functionality to this game calling on the good ol&#8217; &#8220;\/usr\/share\/dict\/words&#8221; inbuilt dictionary of words that comes with Linux (and macOS) &#8220;out of the box&#8221; &#8230; hooooorayyyyy!<\/p>\n<p>In broad brush terms, we use &#8230;<\/p>\n<ul>\n<li>the Linux &#8220;\/usr\/share\/dict\/words&#8221; inbuilt dictionary of English words to pick a candidate word &#8230;<\/li>\n<li>ask, via <a target=_blank title='jQuery Ajax information' href='http:\/\/api.jquery.com\/jquery.ajax\/'>jQuery Ajax<\/a> of <a target=_blank title='WordReference website' href='http:\/\/wordreference.com'>WordReference<\/a> if this word has synonyms &#8230;\n<ol>\n<li>if not, reask &#8220;\/usr\/share\/dict\/words&#8221; inbuilt dictionary for a word &#8230; else &#8230;<\/li>\n<li>sit there and wait for a &#8220;buzz in&#8221; via mouse or keyboard for a player answer, and if they are correct, their score increases by the length of the synonym word(s)<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<p>Here&#8217;s a <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/wordguessgame.html\" title='Click picture'>live run<\/a> and here is the HTML programming source code you could call <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/wordguessgame.html--GETME\" title=\"wordguessgame.html\">the changed<\/a> <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/wordguessgame.html--GETME\" title=\"wordguessgame.html\">wordguessgame.html<\/a> code.<\/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\/word-guessing-or-synonym-game-for-two-tutorial\/'>Word Guessing or Synonym Game for Two Tutorial<\/a>.<\/p-->\n<hr>\n<p id='wggtpt'>Previous relevant <a target=_blank title='Word Guessing Game for Two Primer Tutorial' href='\/\/www.rjmprogramming.com.au\/ITblog\/word-guessing-game-for-two-primer-tutorial\/'>Word Guessing Game for Two Primer Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/wordguessgame.html\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"Word Guessing Game for Two Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/wordguessgame.jpg\" title=\"Word Guessing Game for Two Primer Tutorial\" \/><\/a><p class=\"wp-caption-text\">Word Guessing Game for Two Primer Tutorial<\/p><\/div>\n<p>Word Games help vocabulary for <a target=_blank title='English as a second or foreign language' href='https:\/\/en.wikipedia.org\/wiki\/English_as_a_second_or_foreign_language'>ESL<\/a> students.  There is also not much doubt that collaboration can help ESL students, who also learn quicker with other students present.<\/p>\n<p>Today we create a web application Word Guessing Game designed for two.  Not two devices, the one device for two users (hovering over it).  So for &#8230;<\/p>\n<ul>\n<li>non-mobile users can play the game with one user using the mouse and the other using the keyboard<\/li>\n<li>mobile users can play with one user using touch on the blue areas of the web application and the other using touch on other places<\/li>\n<\/ul>\n<p>The events we code for are &#8230;<\/p>\n<ul>\n<li><a target=_blank title='Javascript onclick event information from w3schools' href='http:\/\/www.w3schools.com\/jsref\/event_onclick.asp'>onclick<\/a>  &#8230; will be recognised on non-mobile platforms<\/li>\n<li><a target=_blank title='Javascript ontouchstart event information from w3schools' href='http:\/\/www.w3schools.com\/jsref\/dom_obj_event.asp'>ontouchstart<\/a>  &#8230; will be recognised on mobile platforms (where it will supercede any onlick event)<\/li>\n<li><a target=_blank title='Javascript onkeyup event information from w3schools' href='http:\/\/www.w3schools.com\/jsref\/event_onkeyup.asp'>onkeyup<\/a> &#8230;  will be recognised on non-mobile platforms<\/li>\n<\/ul>\n<p> &#8230; so you can see that the colour coding of the webpage becomes important for the mobile platform usage.<\/p>\n<p>Today&#8217;s game tests English vocabulary skills.  Why just English?   Well, it uses English words, based on the dictionary arrangements at its (web) server, which happens to be based on English.<\/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>Here&#8217;s a <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/wordguessgame.html\" title='Click picture'>live run<\/a> and here is the HTML programming source code you could call <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/wordguessgame.html_GETME\" title=\"wordguessgame.html\">wordguessgame.html<\/a> which, again, uses some PHP we&#8217;ve talked about with a lot of our <a target=_blank title='Word Games' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/word-game'>word games<\/a> at this blog, on a &#8220;Client Pre-Emptive Iframe&#8221; scenario in a couple of HTML iframe elements we include into today&#8217;s game.  We thank this free online <a target=_blank href=\"http:\/\/www.thefreedictionary.com\/\">English<\/a> dictionary that gets called on if the user chooses to.<\/p>\n<p>We hope you try it, and like it.  By the way, you can also play the game as a single user.<\/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='#d17485' onclick='var dv=document.getElementById(\"d17485\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?tag=SQL\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d17485' 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='#d51091' onclick='var dv=document.getElementById(\"d51091\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/synonym\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d51091' 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='#d51099' onclick='var dv=document.getElementById(\"d51099\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/sentence\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d51099' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>On a similar &#8220;English word&#8221; theme to yesterday&#8217;s Word Guessing or Synonym Game for Two Tutorial today we want to create an &#8230; online game &#8230; constructing English sentences &#8230; via English words &#8230; but, perhaps a tad obtusely &#8230; &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/connective-english-word-sentence-game-primer-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,14,15,37],"tags":[2248,1834,3503,3502,380,388,396,476,537,932,3504,997,2144,1119,3501,1159,1319,1865,1452,1453],"class_list":["post-51099","post","type-post","status-publish","format-standard","hentry","category-elearning","category-esl","category-event-driven-programming","category-games","category-tutorials","tag-adverb","tag-article","tag-conjunction","tag-connective","tag-email","tag-english","tag-esl","tag-game","tag-grammar","tag-php","tag-preposition","tag-programming","tag-pronoun","tag-sentence","tag-sentence-game","tag-sms","tag-tutorial","tag-verb","tag-word","tag-word-game"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/51099"}],"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=51099"}],"version-history":[{"count":8,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/51099\/revisions"}],"predecessor-version":[{"id":51107,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/51099\/revisions\/51107"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=51099"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=51099"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=51099"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}