{"id":16716,"date":"2015-08-21T05:01:52","date_gmt":"2015-08-20T19:01:52","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=16716"},"modified":"2015-08-21T11:26:11","modified_gmt":"2015-08-21T01:26:11","slug":"number-plate-numbers-game-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/number-plate-numbers-game-tutorial\/","title":{"rendered":"Number Plate Numbers Game Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/number_plate_numbers.html\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"Number Plate Numbers Game Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/number_plate_numbers.jpg\" title=\"Number Plate Numbers Game Tutorial\"    \/><\/a><p class=\"wp-caption-text\">Number Plate Numbers Game Tutorial<\/p><\/div>\n<p>Sometimes in mathematics it&#8217;s hard to tie concepts down to real world experience.  Personally, I&#8217;ve often wondered about the use of <a target=_blank title='Factorials information from Wikipedia ... thanks' href='https:\/\/en.wikipedia.org\/wiki\/Factorial'>factorials<\/a>.  Then we read <a target=_blank title='Factorial information from Wikipedia ... thanks' href='https:\/\/en.wikipedia.org\/wiki\/Factorial'>here<\/a> that there are n! different ways of arranging n objects in sequence.<\/p>\n<p>Then, yesterday, started to wonder about our incredibly fractured number plate system here in New South Wales, a state of Australia.<\/p>\n<p>Are you in a family that guesses number plate origins on car trips?  Probably a good game on <a target=_blank title='Route 66' href='https:\/\/www.google.com\/search?q=Route+66&#038;ie=utf-8&#038;oe=utf-8'>Route 66<\/a>?!  If yes, try giving an instantaneous answer here in New South Wales just being given the number plate numbers and letters!<\/p>\n<p>Then wondered how many vehicles are &#8220;covered&#8221; by the range of possibilities of a &#8220;number plate system&#8221;, and in doing the &#8220;math&#8221; thought that my lifelong quest for &#8220;factorial&#8221; relevance had come to an end &#8230; you can&#8217;t imagine my joy &#8230; a bit like in William Steig&#8217;s &#8220;Sylvester and the Magic Pebble&#8221; (won&#8217;t wreck it for you here, in case you want to purchase it via the <a target=_blank href='http:\/\/www.amazon.com\/Sylvester-Magic-Pebble-William-Steig\/dp\/1442435607' title='Sylvester and the Magic Pebble'>Amazon<\/a> link) &#8230; but realised a bit later it wasn&#8217;t factorials, nor did it involve probabilities as such, but it was just plain old simple &#8220;multiplication&#8221; &#8230; oh well &#8230; it was still worth the thoughts.<\/p>\n<p>So the gist of the Number Plate Numbers Game mathematics is to multiply &#8220;range numbers&#8221;.   So if a number plate number can be a letter from A to Z then its contribution to the total of possibilities is 26.  You guessed it &#8230; a number (from 0 to 9) contributes &#8220;10 times&#8221; to the existing number of possibilities.  So a number plate like AZA 909 is in amongst 26x26x26x10x10x10 (= 17576000) number plates within that &#8220;number plate system&#8221;.  The other funny thing about all this is that all you have to do is rearrange the sequence of the arrangement, and a whole (perhaps 17576000) lot more &#8220;number plate&#8221; possibilities open up.<\/p>\n<p>Today we want to avoid the server side PHP we often use here at this blog, to mix it up a bit for users with no web hosting that suits, so today we write our game just with HTML and Javascript.  For help with the population comparisons we apply in the game we would like to thank Wikipedia for this <a target=_blank title='Useful link ... thanks' href='https:\/\/en.wikipedia.org\/wiki\/List_of_countries_and_dependencies_by_population'>link&#8217;s<\/a> information.<\/p>\n<p>So why not try the <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/number_plate_numbers.html\" title='Click picture'>game<\/a> or peruse the HTML and Javascript source code you could call <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/number_plate_numbers.html-GETME\" title='number_plate_numbers.html'>number_plate_numbers.html<\/a> (Stop Press: yesterday&#8217;s work was a bit cross-browser &#8220;not so good&#8221; and you can see how it changed <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/number_plate_numbers.html-GETME\" title='number_plate_numbers.html'>here<\/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='#d16716' onclick='var dv=document.getElementById(\"d16716\"); 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='d16716' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes in mathematics it&#8217;s hard to tie concepts down to real world experience. Personally, I&#8217;ve often wondered about the use of factorials. Then we read here that there are n! different ways of arranging n objects in sequence. Then, yesterday, &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/number-plate-numbers-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":[476,477,576,652,752,997,1200,1319],"class_list":["post-16716","post","type-post","status-publish","format-standard","hentry","category-elearning","category-games","category-tutorials","tag-game","tag-games-2","tag-html","tag-javascript","tag-mathematics","tag-programming","tag-stop-press","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/16716"}],"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=16716"}],"version-history":[{"count":10,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/16716\/revisions"}],"predecessor-version":[{"id":16734,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/16716\/revisions\/16734"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=16716"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=16716"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=16716"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}