{"id":8952,"date":"2014-08-11T05:05:29","date_gmt":"2014-08-10T19:05:29","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=8952"},"modified":"2014-08-11T05:05:29","modified_gmt":"2014-08-10T19:05:29","slug":"htmljavascript-probability-game-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/htmljavascript-probability-game-tutorial\/","title":{"rendered":"HTML\/Javascript Probability Game Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/probability_chalkboard.html\"><img decoding=\"async\" style=\"float:left;border: 15px solid pink;\" alt=\"HTML\/Javascript Probability Game Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/ProbabilityGame.jpg\" title=\"HTML\/Javascript Probability Game Tutorial\"  \/><\/a><p class=\"wp-caption-text\">HTML\/Javascript Probability Game Tutorial<\/p><\/div>\n<p>Here is a <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/probability_chalkboard.html\" title='HTML\/Javascript More Probability Tutorial'>tutorial<\/a> showing some client-side basics in HTML and Javascript that can <strike>verify your calculation of the roots of a quadratic equation<\/strike> (if you believe in the tooth fairy) get you solving some mathematical probability questions, by filling in a missing bit of information in a three-part &#8220;probability sentence&#8221;, and today we use an HTML5 canvas element in our methodology.   The inspiration for this came from the tutorial <a target=_blank title='Probability' href='hhttp:\/\/www.mathsisfun.com\/data\/probability.html'>here<\/a>, and we invite you to play with another player, and add your own, maybe while they aren&#8217;t looking?!  (Hint: Try the middle Dot).<\/p>\n<p>This HTML\/Javascript solution uses three HTML select tags, one incomplete, to piece together a &#8220;probability sentence&#8221; to score points in our mathematical game.<\/p>\n<p>Link to some downloadable HTML programming code &#8230; rename to <a target=_blank href='http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/probability_chalkboard.html_GETME' title='probability_chalkboard.html'>probability_chalkboard.html<\/a><\/p>\n<p>Hope you add to your ideas from today&#8217;s mathematical tutorial.<\/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='#d8952' onclick='var dv=document.getElementById(\"d8952\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?tag=mathematics\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d8952' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Here is a tutorial showing some client-side basics in HTML and Javascript that can verify your calculation of the roots of a quadratic equation (if you believe in the tooth fairy) get you solving some mathematical probability questions, by filling &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/htmljavascript-probability-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,15,37],"tags":[184,459,476,576,652,752,989,997,1319],"class_list":["post-8952","post","type-post","status-publish","format-standard","hentry","category-elearning","category-games","category-tutorials","tag-canvas","tag-fractions","tag-game","tag-html","tag-javascript","tag-mathematics","tag-probability","tag-programming","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/8952"}],"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=8952"}],"version-history":[{"count":0,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/8952\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=8952"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=8952"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=8952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}