On a similar โEnglish wordโ theme to yesterdayโs Word Guessing or Synonym Game for Two Tutorial today we want to create an โฆ
- online game โฆ
- constructing English sentences โฆ
- via English words โฆ but, perhaps a tad obtusely โฆ
- our users are encouraged to form the sentences on โthe scaffoldingโ of those short words of (English language) life โฆ our so called โconnective wordsโ (in English) whether they be conjunctions or adverbs (or some small verbs) or pronouns or articles or prepositions
There is another โdata sourceโ similarity to yesterdayโs modus operandi (that used โ/usr/share/dict/wordsโ inbuilt dictionary of words that comes with Linux (and macOS) โout of the boxโ), as we again use a resource from that inbuilt dictionary, only this time referencing (the extremely useful) โ/usr/share/dict/connectivesโ file of English connective (and invariably short) words.
No scoring with our game today, just the idea the user might want to share via Email or SMS their โEnglish Connective Word Based Sentenceโ achievements!
So feel free to try todayโs PHP connective_sentencesphp code live
run game.
Previous relevant Word Guessing or Synonym Game for Two Tutorial is shown below.
The reminder of just how brilliant is the โฆ
- WordReference website โฆ the reminder occurring when we presented the recent Italian French Spanish Verb Conjugation Emoji Image Tutorial โฆ combined with โฆ
- the search for a web application with synergy, leading us to Word Guessing Game for Two Primer Tutorial โฆ has us, today โฆ
โฆ adding onto โฆ
- Word Guess โbuzzing inโ for two players โฆ with โฆ
- Synonym (in English) Guess โbuzzing inโ for two players
โฆ as some additional functionality to this game calling on the good olโ โ/usr/share/dict/wordsโ inbuilt dictionary of words that comes with Linux (and macOS) โout of the boxโ โฆ hooooorayyyyy!
In broad brush terms, we use โฆ
- the Linux โ/usr/share/dict/wordsโ inbuilt dictionary of English words to pick a candidate word โฆ
- ask, via jQuery Ajax of WordReference if this word has synonyms โฆ
- if not, reask โ/usr/share/dict/wordsโ inbuilt dictionary for a word โฆ else โฆ
- sit there and wait for a โbuzz inโ via mouse or keyboard for a player answer, and if they are correct, their score increases by the length of the synonym word(s)
Hereโs a liverun and here is the HTML programming source code you could call thechanged wordguessgame
html code.
Previous relevant Word Guessing Game for Two Primer Tutorial is shown below.
Word Games help vocabulary for ESL students. There is also not much doubt that collaboration can help ESL students, who also learn quicker with other students present.
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 โฆ
- non-mobile users can play the game with one user using the mouse and the other using the keyboard
- 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
The events we code for are โฆ
- onclick โฆ will be recognised on non-mobile platforms
- ontouchstart โฆ will be recognised on mobile platforms (where it will supercede any onlick event)
- onkeyup โฆ will be recognised on non-mobile platforms
โฆ so you can see that the colour coding of the webpage becomes important for the mobile platform usage.
Todayโ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.
Programmers often use Linux dictionary files as a means to get a word list, and that list could be in any language, and for ours it is English.
Hereโs a liverun and here is the HTML programming source code you could call wordguessgame
html which, again, uses some PHP weโve talked about with a lot of our word games at this blog, on a โClient Pre-Emptive Iframeโ scenario in a couple of HTML iframe elements we include into todayโs game. We thank this free online English dictionary that gets called on if the user chooses to.
We hope you try it, and like it. By the way, you can also play the game as a single user.
If this was interesting you may be interested in this too.
If this was interesting you may be interested in this too.
If this was interesting you may be interested in this too.