{"id":15672,"date":"2015-06-30T05:01:15","date_gmt":"2015-06-29T19:01:15","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=15672"},"modified":"2015-06-30T20:47:54","modified_gmt":"2015-06-30T10:47:54","slug":"html-hand-cricket-game-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/html-hand-cricket-game-primer-tutorial\/","title":{"rendered":"HTML Hand Cricket Game Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/HandCricket\/\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"HTML Hand Cricket Game Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/HandCricket\/hand_cricket-17of.jpg\" title=\"HTML Hand Cricket Game Primer Tutorial\" id='iohc' onmouseover=\" this.src=this.src.replace('-11of', '-x12of').replace('-12of', '-x13of').replace('-13of', '-x14of').replace('-14of', '-x15of').replace('-15of', '-x16of').replace('-16of', '-x17of').replace('-17of', '-x11of').replace('-x1', '-1');   \"    \/><\/a><p class=\"wp-caption-text\">HTML Hand Cricket Game Primer Tutorial<\/p><\/div>\n<p>In Australia, here, we live in a country where a lot of people are keen on <a target=_blank title='Cricket information from Wikipedia ... thanks' href='https:\/\/en.wikipedia.org\/?title=Cricket'>cricket<\/a>, as a summer sport.  There are three main public forms of the game &#8230;<\/p>\n<ol>\n<li>Test cricket played over up to 5 days (or International or State or Country or Grade cricket played over 2 to 4 days) with up to 2 innings for each side<\/li>\n<li>Limited Overs cricket with 50 overs per side over about half a day<\/li>\n<li>Twenty Over cricket over several hours<\/li>\n<\/ol>\n<p> &#8230; but when some of us (cough, cough) were young, only the first form existed, and we would listen to crackly radios and the commentators over in England, during a battle for <a target=_blank title='The Ashes test cricket between England and Australia information from Wikipedia ... thanks' href='https:\/\/en.wikipedia.org\/wiki\/The_Ashes'>The Ashes<\/a> Test Series, would simulate <a target=_blank title='ball on willow' href='http:\/\/www.smh.com.au\/sport\/a-beach-a-backyard-the-thwack-of-a-ball-on-willow-20111223-1p8cn.html'>&#8220;ball on willow&#8221;<\/a> by <a target=_blank title='Cricket commentary' href='https:\/\/www.youtube.com\/watch?v=PnvXpCO_R3A'>tapping their pencils<\/a> &#8230; <\/p>\n<div align='center'><iframe loading=\"lazy\" width=\"420\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/PnvXpCO_R3A\" frameborder=\"0\" allowfullscreen><\/iframe><\/div>\n<p> &#8230; (I presumed) on the table in front of them, as they provided very vivid, imaginative and entertaining commentary, not just on cricket, but on history, seagulls, <a target=_blank title='Wisdens' href='http:\/\/www.wisden.com\/'>statistics<\/a> galore, architecture and about the characters of the game (invented by the English).<\/p>\n<p>That pencil, especially the old HB varieties we used at school had other uses &#8230; they were nicely bevelled into 6 sides that could be used as a random &#8220;wheel of fortune&#8221; of 6 choices (ie. you could use a die as an alternative) &#8230;<\/p>\n<p><img src='http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/HandCricket\/hand_cricket_pencil.jpg' title='Hand Cricket Pencil Game' \/><\/p>\n<p>Chisel into the pencil what you&#8217;ve invented as your six cricket event outcomes and you&#8217;ve got a great &#8220;table&#8221; game for one, or more.  Today, we hope you have two co-operative people around to represent the two teams that are going to play &#8220;Hand Cricket&#8221; (in the mode of Test Cricket).<\/p>\n<p>We default the teams to England versus Australia with recent line-ups, but you can change this before the toss, which happens when you click on the &#8220;Vs&#8221; link.<\/p>\n<p>The pencil roll is simulated by a dropdown choice, so please, no cheating about seeing what the other player chose, and then, all being well, we&#8217;ve used the great game strategy advice from this <a target=_blank title='Hand cricket advice ... thanks' href='http:\/\/math.stackexchange.com\/questions\/494161\/the-game-of-hand-cricket'>useful link<\/a> (thanks).<\/p>\n<p>Here is a <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/HandCricket\/\" title='click picture'>live run<\/a>.<\/p>\n<p>Here is a <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/HandCricket\/index.html\" title='slideshow'>slideshow<\/a>.<\/p>\n<p>Here is the HTML source code you could call <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/HandCricket\/hand_cricket.html_GETME\" title='hand_cricket.html'>hand_cricket.html<\/a> (and we used this <a target=_blank title='beep sound useful link' href='http:\/\/stackoverflow.com\/questions\/879152\/how-do-i-make-javascript-beep'>useful link<\/a> for advice on a beep sound for non-mobile platforms &#8230; thanks).<\/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='#d15672' onclick='var dv=document.getElementById(\"d15672\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/?tag=game\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d15672' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In Australia, here, we live in a country where a lot of people are keen on cricket, as a summer sport. There are three main public forms of the game &#8230; Test cricket played over up to 5 days (or &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/html-hand-cricket-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,15,37],"tags":[1599,476,477,576,997,1183,1319],"class_list":["post-15672","post","type-post","status-publish","format-standard","hentry","category-elearning","category-games","category-tutorials","tag-cricket","tag-game","tag-games-2","tag-html","tag-programming","tag-sport","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/15672"}],"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=15672"}],"version-history":[{"count":17,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/15672\/revisions"}],"predecessor-version":[{"id":15715,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/15672\/revisions\/15715"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=15672"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=15672"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=15672"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}