{"id":48029,"date":"2020-02-17T03:01:03","date_gmt":"2020-02-16T17:01:03","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=48029"},"modified":"2023-11-06T15:53:08","modified_gmt":"2023-11-06T05:53:08","slug":"nimh-game-revisit-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/nimh-game-revisit-tutorial\/","title":{"rendered":"Nimh Game Revisit Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Games\/Nimh\/index.php\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Nimh Game Revisit Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/Mac\/nimh_fixes.jpg\" title=\"Nimh Game Revisit Tutorial\"  style=\"float:left;\"   \/><\/a><p class=\"wp-caption-text\">Nimh Game Revisit Tutorial<\/p><\/div>\n<p>We&#8217;re revisiting our Nimh (&#8220;play the computer and do not get stuck with the last match&#8221;) <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Games\/Nimh\/index.php\" title=\"Click picture\">game<\/a> today, for a few reasons &#8230;<\/p>\n<ul>\n<li>it had slowed down, reading through user files, but every now and then we can maintain that &#8230; as well as realizing &#8230;<\/li>\n<li>the effect of &#8230;\n<ol>\n<li>the sizing we&#8217;d established for the matches &#8230; combined with &#8230;<\/li>\n<li>the vertical alignment we&#8217;d established for a &#8220;whole matches row deletion&#8221; &#8220;a&#8221; link &#8230; as well as &#8230;<\/li>\n<li>non-mobile onmouseover (ie. on hover) logic we&#8217;d applied to preview what could happen should you follow through with your proposed move<\/li>\n<\/ol>\n<p> &#8230; had (unbeknown to us, sometime back &#8230; sorrrrrrrryyyyyyyy) set up the dreaded &#8220;whac-a-mole&#8221; situation whereby the &#8220;a&#8221; link would move away from &#8220;clickability&#8221; when hovering on the way to really wanting to click the &#8220;a&#8221; link &#8230; very frustrating &#8230; and the CSS solution panned out to be &#8230;<br \/>\n<code><br \/>\n&lt;style&gt;<br \/>\n a { vertical-align:top; }<br \/>\n&lt;\/style&gt;<br \/>\n<\/code>\n<\/li>\n<li>it had many &#8220;Mixed Content&#8221; situations causing problems, now more &#8220;fatal&#8221; with the web browsers whereby the coding allows for a mix of &#8220;HTTP:&#8221; protocol content to mix with &#8220;HTTPS:&#8221; protocol content, or vice versa &#8230; the fix being &#8230;<br \/>\n<code><br \/>\nFix mixed content<br \/>\nvia mapping of<br \/>\nHTTP:\/\/ and HTTPS:\/\/<br \/>\nhardcodings to<br \/>\n\/\/<br \/>\n<\/code>\n<\/li>\n<li>had two PHP bugs where in &#8220;header(&#8216;Location: \/Games\/Nimh\/index.php&#8217;);&#8221; we had spurious characters to the right of &#8220;:&#8221; &#8230; sorrrrrrrrrryyyyyyy (for some scenarios)<\/li>\n<li>fixed the size of matches that in some scenarios was far too big<\/li>\n<\/ul>\n<p> &#8230; that we hope makes the game below more bearable &#8230;<\/p>\n<p><iframe src=\"\/\/www.rjmprogramming.com.au\/Games\/Nimh\/index.php\" style=\"width:100%;height:900px;\"><\/iframe><\/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='#d48029' onclick='var dv=document.getElementById(\"d48029\"); 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='d48029' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;re revisiting our Nimh (&#8220;play the computer and do not get stuck with the last match&#8221;) game today, for a few reasons &#8230; it had slowed down, reading through user files, but every now and then we can maintain that &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/nimh-game-revisit-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,14,15,37],"tags":[211,281,476,1608,590,1807,2772,3226,3225,871,932,997,1682,1319,1802],"class_list":["post-48029","post","type-post","status-publish","format-standard","hentry","category-elearning","category-event-driven-programming","category-games","category-tutorials","tag-click","tag-css","tag-game","tag-hover","tag-image","tag-link","tag-match","tag-mixed-content","tag-nimh","tag-onmouseover","tag-php","tag-programming","tag-ssl","tag-tutorial","tag-vertical-align"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/48029"}],"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=48029"}],"version-history":[{"count":6,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/48029\/revisions"}],"predecessor-version":[{"id":61481,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/48029\/revisions\/61481"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=48029"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=48029"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=48029"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}