{"id":1144,"date":"2020-06-09T13:51:27","date_gmt":"2020-06-09T13:51:27","guid":{"rendered":"https:\/\/computerscienced.co.uk\/site\/?page_id=1144"},"modified":"2022-12-30T16:40:52","modified_gmt":"2022-12-30T16:40:52","slug":"towers-of-hanoi-5-discs","status":"publish","type":"page","link":"https:\/\/computerscienced.co.uk\/site\/towers-of-hanoi\/towers-of-hanoi-5-discs\/","title":{"rendered":"Towers of Hanoi 5 discs"},"content":{"rendered":"\n\n\n  \n    <meta charset=\"utf-8\">\n    <title>Towers of Hanoi<\/title>\n    <link rel=\"stylesheet\" href=\"https:\/\/computerscienced.co.uk\/site\/towersofhanoi\/css\/style.css\">\n\n    <script type=\"text\/javascript\" src=\"https:\/\/computerscienced.co.uk\/site\/towersofhanoi\/js\/jquery.js\"><\/script> \n    <script type=\"text\/javascript\" src=\"https:\/\/computerscienced.co.uk\/site\/towersofhanoi\/js\/jquery-ui-1.9.0.custom.js\"><\/script>   \n    <script type=\"text\/javascript\" src=\"https:\/\/computerscienced.co.uk\/site\/towersofhanoi\/js\/towersOfHanoi5.js\"><\/script>    \n    <script type=\"text\/javascript\" src=\"https:\/\/computerscienced.co.uk\/site\/towersofhanoi\/js\/jquery.slidePanel.min.js\"><\/script>\n<script src=\"https:\/\/computerscienced.co.uk\/site\/js-parsons\/lib\/jquery.ui.touch-punch.min.js\"><\/script>\n  \n  \n    <div class=\"info message\">\n      <h3>Invalid move!<\/h3>\n      <p>No disk may be placed on top of a smaller disk.<\/p>\n    <\/div>\n\n    <div class=\"success message\">\n      <h3>Congratulations!<\/h3>\n      <p>You won! \ud83d\ude42<\/p>\n    <\/div>\n      \n  <div class=\"wrapper\">\n<br><br>\n        <p>Try to move all the disks from the most left tower to the most right.\n        <br><br>\n        You may only move one disk at a time.\n        <br><br>\n        You must never allow a bigger disk to go on top of a smaller disk.\n<br><br>\n<b>Can you do it in 31 moves?!<\/b>\n<\/p>\n<button id=\"reload\" onclick=\"reset();\">Restart the puzzle<\/button>\n      <div id=\"numofmoves\">You have made <span id=\"numberofmoves\"><\/span> moves<\/div>\n      <div class=\"droppable\" id=\"tower1\">\n        <div class=\"bar\"><\/div>\n        <div class=\"content\">\n        \n            <div id=\"tower1holder\"><\/div>\n        <\/div>\n      <\/div>\n      <div class=\"droppable\" id=\"tower2\">\n        <div class=\"bar\"><\/div>\n        <div class=\"content\"><\/div>\n        \n      <\/div>\n      <div class=\"droppable\" id=\"tower3\">\n        <div class=\"bar\"><\/div>\n        <div class=\"content\"><\/div>\n      <\/div>\n  \n<\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Towers of Hanoi Invalid move! No disk may be placed on top of a smaller disk. Congratulations! You won! \ud83d\ude42&#8230;<\/p>\n","protected":false},"author":1,"featured_media":2609,"parent":1133,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"disable_featured_image":true,"footnotes":""},"class_list":["post-1144","page","type-page","status-publish","has-post-thumbnail","hentry"],"blog_post_layout_featured_media_urls":{"thumbnail":["https:\/\/computerscienced.co.uk\/site\/wp-content\/uploads\/2021\/09\/undraw_Detailed_analysis_re_tk6j.svg",150,150,true],"full":["https:\/\/computerscienced.co.uk\/site\/wp-content\/uploads\/2021\/09\/undraw_Detailed_analysis_re_tk6j.svg",925,570,false]},"categories_names":null,"comments_number":"0","_links":{"self":[{"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/pages\/1144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/comments?post=1144"}],"version-history":[{"count":3,"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/pages\/1144\/revisions"}],"predecessor-version":[{"id":6117,"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/pages\/1144\/revisions\/6117"}],"up":[{"embeddable":true,"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/pages\/1133"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/media\/2609"}],"wp:attachment":[{"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/media?parent=1144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}