{"id":11158,"date":"2014-12-22T05:01:57","date_gmt":"2014-12-21T18:01:57","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=11158"},"modified":"2025-01-07T13:02:34","modified_gmt":"2025-01-07T03:02:34","slug":"htmljavascript-binaryoctalhexadecimal-game-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/htmljavascript-binaryoctalhexadecimal-game-tutorial\/","title":{"rendered":"HTML\/Javascript Binary\/Octal\/Hexadecimal Game Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=\"_blank\" href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/binary_quiz.htm\" rel=\"noopener\"><img decoding=\"async\" style=\"float:left;border: 15px solid pink;\" alt=\"HTML\/Javascript Binary\/Octal\/Hexadecimal Game Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/binary_quiz.jpg\" title=\"HTML\/Javascript Binary\/Octal\/Hexadecimal Game Tutorial\" id='ibq' data-onmouseover='  this.src=this.src.replace(\".jpg\",\".PNG\").replace(\".png\",\".jpg\").replace(\".PNG\",\".png\");   '  \/><\/a><p class=\"wp-caption-text\">HTML\/Javascript Binary\/Octal\/Hexadecimal Game Tutorial<\/p><\/div>\n<p>Are you feeling transformational?  Maybe calculating?   Perhaps didactic?   Witheringly logical?   You can test how you feel, in a mathematical sense, by playing our &#8220;Binary\/Octal\/Hexadecimal&#8221; <a target=\"_blank\" href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/binary_quiz.html\" title=\"Binary\/Octal\/Hexadecimal game\" rel=\"noopener\">game<\/a> today.<\/p>\n<p>The study of <a target=\"_blank\" title='Radix information from Wikipedia ... thanks' href='http:\/\/en.wikipedia.org\/wiki\/Radix' rel=\"noopener\">bases<\/a> other than (decimal) 10 in mathematics is very interesting and it is used a lot in computing, a simple example of which is notation like #ffffff to describe the colour white, which lots of us were taught at school as the colour that contains the lot, hence all the 255 (hexadecimal ff) of Red and 255 (hexadecimal ff) of Green and 255 (hexadecimal ff) of Blue in the <a target=\"_blank\" title='RGB information from Wikipedia ... thanks' href='http:\/\/en.wikipedia.org\/wiki\/RGB_color_model' rel=\"noopener\">RGB colour model<\/a> system.  You might think that a computer would be able to work faster with the smaller amounts of data of hexadecimal, but, basically, the computer will, eventually, go and turn this into binary because at the bottom of its design it understands <i>on<\/i> and <i>off<\/i>, as you would understand voltage on a Bugs Bunny cartoon if you were the Coyote just missing the Roadrunner, running into an electrical socket running an Eat at Joes sign being switched off, on (sizzle), off, on (sizzle), off, on (sizzled <a target=\"_blank\" title='Coyote' href='http:\/\/www.google.com.au\/imgres?imgurl=https%3A%2F%2Fi1.ytimg.com%2Fvi%2Fmtxe-vnyJms%2Fhqdefault.jpg&#038;imgrefurl=http%3A%2F%2Fwww.word.photos%2Findex.php%3Fkeyword%3Da%2520road%2520runner%2520cartoon&#038;h=360&#038;w=480&#038;tbnid=sPjKIjMu08ibPM%3A&#038;zoom=1&#038;docid=TJ4gSBsKEGhmtM&#038;ei=BK2WVKb2CeHUmAXGoYHIAQ&#038;tbm=isch&#038;iact=rc&#038;uact=3&#038;dur=765&#038;page=1&#038;start=0&#038;ndsp=15&#038;ved=0CB4QMygBMAE' rel=\"noopener\">Coyote<\/a>, meet <a target=\"_blank\" title='Daffy Duck' href='https:\/\/www.google.com.au\/search?q=daffy+duck+electrocuted+bugs+bunny&#038;biw=1280&#038;bih=622&#038;source=lnms&#038;tbm=isch&#038;sa=X&#038;ei=_KiWVLOOMIKwmwW9t4FI&#038;ved=0CAYQ_AUoAQ#tbm=isch&#038;q=%22daffy+duck+burnt%22&#038;facrc=_&#038;imgdii=_&#038;imgrc=5k8RuB5Gi-9jXM%253A%3Bvcv6zZqt_rMiGM%3Bhttp%253A%252F%252Fi.ytimg.com%252Fvi%252F0b1_9czUox4%252Fhqdefault.jpg%3Bhttp%253A%252F%252Fwww.youtube.com%252Fwatch%253Fv%253D0b1_9czUox4%3B480%3B360' rel=\"noopener\">Daffy Duck<\/a>?!).<\/p>\n<p>Anyway, see how you go with this game that asks you to solve 5 problems as quickly as possible.  One way around you can cheat the system, and this is fine by me, in the sense that the intention is just to put that picture in your head of the powers of 2 involved to get a little bit familiar with them.   Another way to do this is to access a text editor that can simultaneously display a hexadecimal view (or dump) of that data.  <a target=\"_blank\" title='UltraEdit Windows text editor' href='http:\/\/www.ultraedit.com\/ultraedit-tour\/hex-editor.html' rel=\"noopener\">UltraEdit<\/a> on Windows can do this.<\/p>\n<p>Here is a link to some downloadable HTML (with Javascript) programming code you could rename to <a target=\"_blank\" href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/binary_quiz.html_GETME\" title=\"binary_quiz.html\" rel=\"noopener\">binary_quiz.html<\/a> and a <a target=\"_blank\" href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/binary_quiz.html\" title=\"Live Run\" rel=\"noopener\">live run<\/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='#d11158' onclick='var dv=document.getElementById(\"d11158\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?tag=game\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d11158' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Are you feeling transformational? Maybe calculating? Perhaps didactic? Witheringly logical? You can test how you feel, in a mathematical sense, by playing our &#8220;Binary\/Octal\/Hexadecimal&#8221; game today. The study of bases other than (decimal) 10 in mathematics is very interesting and &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/htmljavascript-binaryoctalhexadecimal-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":[105,131,145,308,476,562,576,652,752,997,1022,1025,1319],"class_list":["post-11158","post","type-post","status-publish","format-standard","hentry","category-elearning","category-games","category-tutorials","tag-ascii","tag-base","tag-binary","tag-decimal","tag-game","tag-hexadecimal","tag-html","tag-javascript","tag-mathematics","tag-programming","tag-quiz","tag-radix","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/11158"}],"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=11158"}],"version-history":[{"count":3,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/11158\/revisions"}],"predecessor-version":[{"id":66450,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/11158\/revisions\/66450"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=11158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=11158"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=11158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}