{"id":154,"date":"2017-08-08T13:26:19","date_gmt":"2017-08-08T11:26:19","guid":{"rendered":"http:\/\/www.kopf.com.br\/kaplof\/?p=154"},"modified":"2025-10-01T09:29:49","modified_gmt":"2025-10-01T07:29:49","slug":"how-to-solve-any-slide-puzzle-regardless-of-its-size","status":"publish","type":"post","link":"https:\/\/www.kopf.com.br\/kaplof\/how-to-solve-any-slide-puzzle-regardless-of-its-size\/","title":{"rendered":"How to solve ANY slide puzzle regardless of its size"},"content":{"rendered":"<p>After seeing many people giving up while playing slide puzzles in the <a href=\"https:\/\/im-a-puzzle.com\/slide\">best free online puzzle site<\/a>, I decided to write this fool proof fully illustrated guide to solve any slide puzzle (3&#215;3, 4&#215;4, 5&#215;5, &#8230;).<\/p>\n<div style=\"width: 320px;\" class=\"wp-video\"><!--[if lt IE 9]><script>document.createElement('video');<\/script><![endif]-->\n<video class=\"wp-video-shortcode\" id=\"video-154-1\" width=\"320\" height=\"320\" loop=\"1\" autoplay=\"1\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/webm\" src=\"https:\/\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Im-a-Puzzle-Solve-slide-1.webm?_=1\" \/><a href=\"https:\/\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Im-a-Puzzle-Solve-slide-1.webm\">https:\/\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Im-a-Puzzle-Solve-slide-1.webm<\/a><\/video><\/div>\n<p>I came to the solution while developing the website <a href=\"https:\/\/im-a-puzzle.com\/slide\">im-a-puzzle.com<\/a> and observing that the A* like algorithms take too long to solve puzzles. The nice thing about the solution is that it is so simple that <em>even<\/em> an human being can execute it \ud83d\ude42<\/p>\n<h2>Divide and conquer<\/h2>\n<p>The beauty of the solution proposed here is that it is applicable to any puzzle size: 3&#215;3, 4&#215;4, 5&#215;5, etc. The trick is to solve the edges first so that a 5&#215;5 puzzle becomes a 4&#215;4 and then a 3&#215;3. This technique is also known as <a href=\"https:\/\/en.wikipedia.org\/wiki\/Divide_and_conquer_algorithm\">divide and conquer<\/a>, where a complex problem is broke down into sub-problems, until these become simple enough to be solved directly.<\/p>\n<h2>The algorithm<\/h2>\n<p><a href=\"https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle.gif?ssl=1\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright wp-image-162 size-full\" src=\"https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle.gif?resize=357%2C357&#038;ssl=1\" alt=\"Steps to solve any slide puzzle\" width=\"357\" height=\"357\" data-recalc-dims=\"1\" \/><\/a><br \/>\nThe algorithm consist of following steps:<\/p>\n<ul>\n<li>Solve the top edge (step 1 below)<\/li>\n<li>Solve the left edge (step 2 below)<\/li>\n<li>Repeat steps 1 and 2 until the puzzle size is decreased to 3&#215;3<\/li>\n<li>Solve the top edge only (step 1 below)<\/li>\n<li>Solve the remaining 3&#215;2 puzzle (step 4 below)<\/li>\n<\/ul>\n<p>To move a piece to any position the easiest way is to:<\/p>\n<ul>\n<li>Put the blank square at the target position<\/li>\n<li>Move your piece in the target direction by moving all the pieces one square forward<\/li>\n<li>Put the blank square ahead of your piece again by revolving the pieces around your target piece<\/li>\n<li>Repeat steps 2 and 3 until your piece reaches its target<\/li>\n<\/ul>\n<p>You are going to find many animated examples of these steps in the guide below. As the algorithm consist of solving the edges one-by-one, once an edge is solved it is consider as &#8220;<em>frozen&#8221;<\/em> and you should no longer touch it. That means that when you are revolving the pieces around your target piece you should never breach the &#8220;<em>frozen&#8221;<\/em> area.<\/p>\n<h2>The steps<\/h2>\n<h3>STEP 1 &#8211; Solve the upper edge<\/h3>\n<p>Position all the top pieces from left to right:<\/p>\n<p style=\"text-align: left;\"><strong>1.1<\/strong> Move the 1st piece to the top left corner.<\/p>\n<p style=\"text-align: center;\"><em><a href=\"https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-1.gif?ssl=1\"><img loading=\"lazy\" decoding=\"async\" class=\"size-thumbnail wp-image-172 aligncenter\" src=\"https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-1.gif?resize=150%2C150&#038;ssl=1\" alt=\"\" width=\"150\" height=\"150\" srcset=\"https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-1.gif?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-1.gif?zoom=2&amp;resize=150%2C150&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-1.gif?zoom=3&amp;resize=150%2C150&amp;ssl=1 450w\" sizes=\"(max-width: 150px) 100vw, 150px\" data-recalc-dims=\"1\" \/><\/a><\/em><span style=\"color: #999999;\"><em>Click on the image to see the animation<\/em><\/span><\/p>\n<p><strong>1.2<\/strong> Move the 2nd piece to the top edge just close to the 1st piece<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-1.2.gif?ssl=1\"><img loading=\"lazy\" decoding=\"async\" class=\"size-thumbnail wp-image-178 aligncenter\" src=\"https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-1.2.gif?resize=150%2C150&#038;ssl=1\" alt=\"\" width=\"150\" height=\"150\" srcset=\"https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-1.2.gif?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-1.2.gif?zoom=2&amp;resize=150%2C150&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-1.2.gif?zoom=3&amp;resize=150%2C150&amp;ssl=1 450w\" sizes=\"(max-width: 150px) 100vw, 150px\" data-recalc-dims=\"1\" \/><\/a><span style=\"color: #999999;\"><em>Click on the image to see the animation<\/em><\/span><\/p>\n<p><strong>1.3<\/strong> If required move the 3rd, 4th pieces and so on until there is only 2 missing (applicable for puzzles bigger than 4&#215;4)<\/p>\n<p><strong>1.4<\/strong> Make sure that the last piece of the row is not on the top row itself. If yes, move it out! (Anywhere far away from it)<\/p>\n<p><strong>1.5<\/strong> Move the before last piece of the row to the top right corner (for a 3 columns puzzle, the 2nd piece, for a 4 columns puzzle the 3rd piece, etc.).<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-1.3.gif?ssl=1\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-179\" src=\"https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-1.3.gif?resize=150%2C150&#038;ssl=1\" alt=\"\" width=\"150\" height=\"150\" srcset=\"https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-1.3.gif?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-1.3.gif?zoom=2&amp;resize=150%2C150&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-1.3.gif?zoom=3&amp;resize=150%2C150&amp;ssl=1 450w\" sizes=\"(max-width: 150px) 100vw, 150px\" data-recalc-dims=\"1\" \/><\/a><br \/>\n<span style=\"color: #999999;\"><em>Click on the image to see the animation<\/em><\/span><\/p>\n<p style=\"text-align: left;\"><strong>1.6<\/strong> Position the last piece of the row just below it (right edge, 2nd position from the top)<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-1.4.gif?ssl=1\"><img loading=\"lazy\" decoding=\"async\" class=\"size-thumbnail wp-image-183 aligncenter\" src=\"https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-1.4.gif?resize=150%2C150&#038;ssl=1\" alt=\"\" width=\"150\" height=\"150\" srcset=\"https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-1.4.gif?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-1.4.gif?zoom=2&amp;resize=150%2C150&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-1.4.gif?zoom=3&amp;resize=150%2C150&amp;ssl=1 450w\" sizes=\"(max-width: 150px) 100vw, 150px\" data-recalc-dims=\"1\" \/><\/a><a href=\"https:\/\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-1.4.gif\"><span style=\"color: #999999;\"><em>Click on the image to see the animation<\/em><\/span><\/a><\/p>\n<p><strong> 1.7<\/strong> Move the before last piece to its correct place and the last piece just behind it<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-1.5.gif?ssl=1\"><img loading=\"lazy\" decoding=\"async\" class=\"size-thumbnail wp-image-184 aligncenter\" src=\"https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-1.5.gif?resize=150%2C150&#038;ssl=1\" alt=\"\" width=\"150\" height=\"150\" srcset=\"https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-1.5.gif?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-1.5.gif?zoom=2&amp;resize=150%2C150&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-1.5.gif?zoom=3&amp;resize=150%2C150&amp;ssl=1 450w\" sizes=\"(max-width: 150px) 100vw, 150px\" data-recalc-dims=\"1\" \/><em>Click on the image to see the animation<\/em><\/a><\/p>\n<p>If you are solving a 3&#215;3 puzzle jump to step 4<\/p>\n<h3>STEP 2 &#8211; Solve the left edge<\/h3>\n<p>Position all the left pieces from top to bottom. Please note that the first piece is already be on its correct position:<\/p>\n<p><strong>2.1<\/strong> Move the 2nd piece of the column just below the 1st piece<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-2.1.1.gif?ssl=1\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-186\" src=\"https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-2.1.1.gif?resize=150%2C150&#038;ssl=1\" alt=\"\" width=\"150\" height=\"150\" srcset=\"https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-2.1.1.gif?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-2.1.1.gif?zoom=2&amp;resize=150%2C150&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-2.1.1.gif?zoom=3&amp;resize=150%2C150&amp;ssl=1 450w\" sizes=\"(max-width: 150px) 100vw, 150px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p style=\"text-align: center;\"><span style=\"color: #808080;\"><em>Click on the image to see the animation<\/em><\/span><\/p>\n<p><strong>2.2<\/strong> If required move the 3rd, 4th pieces and so on until there is only 2 missing (applicable for puzzles bigger than 4&#215;4)<\/p>\n<p><strong>2.3<\/strong> Make sure that the last piece of the column is not on the left column itself. If yes, move it out! (Anywhere far away from it)<\/p>\n<p><strong>2.4<\/strong> Move the before last piece of the column to the bottom left corner (for a 3 columns puzzle, the 4th piece, for a 4 columns puzzle the 9th piece, etc.).<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-2.3.gif?ssl=1\"><img loading=\"lazy\" decoding=\"async\" class=\"size-thumbnail wp-image-188 aligncenter\" src=\"https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-2.3.gif?resize=150%2C150&#038;ssl=1\" alt=\"\" width=\"150\" height=\"150\" srcset=\"https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-2.3.gif?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-2.3.gif?zoom=2&amp;resize=150%2C150&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-2.3.gif?zoom=3&amp;resize=150%2C150&amp;ssl=1 450w\" sizes=\"(max-width: 150px) 100vw, 150px\" data-recalc-dims=\"1\" \/><\/a><span style=\"color: #999999;\"><em>Click on the image to see the animation<\/em><\/span><\/p>\n<p><strong>2.5<\/strong> Move the last piece of the column just to the right of it (bottom edge, 2nd position from the left).<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-2.4.gif?ssl=1\"><img loading=\"lazy\" decoding=\"async\" class=\"size-thumbnail wp-image-189 aligncenter\" src=\"https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-2.4.gif?resize=150%2C150&#038;ssl=1\" alt=\"\" width=\"150\" height=\"150\" srcset=\"https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-2.4.gif?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-2.4.gif?zoom=2&amp;resize=150%2C150&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-2.4.gif?zoom=3&amp;resize=150%2C150&amp;ssl=1 450w\" sizes=\"(max-width: 150px) 100vw, 150px\" data-recalc-dims=\"1\" \/><\/a><span style=\"color: #999999;\"><em>Click on the image to see the animation<\/em><\/span><\/p>\n<p style=\"text-align: left;\"><strong>2.6<\/strong> Move the before last piece to its correct place and the last piece just behind it.<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-2.5.gif?ssl=1\"><img loading=\"lazy\" decoding=\"async\" class=\"size-thumbnail wp-image-191 aligncenter\" src=\"https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-2.5.gif?resize=150%2C150&#038;ssl=1\" alt=\"\" width=\"150\" height=\"150\" srcset=\"https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-2.5.gif?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-2.5.gif?zoom=2&amp;resize=150%2C150&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-2.5.gif?zoom=3&amp;resize=150%2C150&amp;ssl=1 450w\" sizes=\"(max-width: 150px) 100vw, 150px\" data-recalc-dims=\"1\" \/><\/a><span style=\"color: #808080;\"><em>Click on the image to see the animation<\/em><\/span><\/p>\n<h3>STEP 3 &#8211; Repeat steps 1 and 2<\/h3>\n<p>Consider the top and left edges as frozen (you are not allowed to touch these pieces anymore!). Go back to step 1 assuming that you are now solving a smaller puzzle. Examples:<\/p>\n<ul>\n<li>If you froze the top and left edges of a 4&#215;4 puzzle, you will now have to solve a 3&#215;3 puzzle.<\/li>\n<li>If you froze the top and left edges of a 5&#215;5 puzzle, you will now have to solve a 4&#215;4 puzzle.<\/li>\n<li>And so on&#8230;<\/li>\n<\/ul>\n<p>If you are solving a 3&#215;3 puzzle you will execute step 1 only and jump to step 4<\/p>\n<h3>STEP 4 &#8211; Solve the 3&#215;2 puzzle<\/h3>\n<p>If you got here than there are only 5 pieces left to position (plus the blank piece). From here on, there is no all-in-one solution and you have to find the solution out yourself. But at the same time there are not many possible combinations.<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-4.gif?ssl=1\"><img loading=\"lazy\" decoding=\"async\" class=\"size-thumbnail wp-image-193 aligncenter\" src=\"https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-4.gif?resize=150%2C150&#038;ssl=1\" alt=\"\" width=\"150\" height=\"150\" srcset=\"https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-4.gif?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-4.gif?zoom=2&amp;resize=150%2C150&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-4.gif?zoom=3&amp;resize=150%2C150&amp;ssl=1 450w\" sizes=\"(max-width: 150px) 100vw, 150px\" data-recalc-dims=\"1\" \/><\/a><span style=\"color: #808080;\"><em>Click on the image to see the animation<\/em><\/span><\/p>\n<p>You will notice that there are only 4 basic movements possible: turning the first square clockwise or counterclockwise or turning the second square clockwise or counterclockwise. You will have to find your way and use them over and over until the 3&#215;2 puzzle is solved. You can try to solve the remaining left edge of the 3&#215;2 puzzle but that&#8217;s not strictly necessary. The worst case scenario happens when the numbers are displayed in the opposite order or when they are in the right order but in the wrong row.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Step-4-Possible-movements.png?ssl=1\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-194 aligncenter\" src=\"https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Step-4-Possible-movements.png?resize=300%2C212&#038;ssl=1\" alt=\"\" width=\"300\" height=\"212\" srcset=\"https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Step-4-Possible-movements.png?resize=300%2C212&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Step-4-Possible-movements.png?w=387&amp;ssl=1 387w\" sizes=\"(max-width: 300px) 100vw, 300px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>The good thing is that <a href=\"https:\/\/www.ohmydots.com\/creator-puzzle.html\">this amazing puzzle maker<\/a> only generates solvable puzzles. You do not have to be afraid that your puzzle will not have a solution.<\/p>\n<p>If you have any suggestions or comments to the current algorithm feel free to write them here below.<\/p>\n<p>Have fun!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After seeing many people giving up while playing slide puzzles in the best free online puzzle site, I decided to write this fool proof fully illustrated guide to solve any slide puzzle (3&#215;3, 4&#215;4, 5&#215;5, &#8230;). I came to the solution while developing the website im-a-puzzle.com and observing that the A* like algorithms take too [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":172,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,11],"tags":[48],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to solve ANY slide puzzle regardless of its size - Kaplof<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.kopf.com.br\/kaplof\/how-to-solve-any-slide-puzzle-regardless-of-its-size\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to solve ANY slide puzzle regardless of its size - Kaplof\" \/>\n<meta property=\"og:description\" content=\"After seeing many people giving up while playing slide puzzles in the best free online puzzle site, I decided to write this fool proof fully illustrated guide to solve any slide puzzle (3&#215;3, 4&#215;4, 5&#215;5, &#8230;). I came to the solution while developing the website im-a-puzzle.com and observing that the A* like algorithms take too [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.kopf.com.br\/kaplof\/how-to-solve-any-slide-puzzle-regardless-of-its-size\/\" \/>\n<meta property=\"og:site_name\" content=\"Kaplof\" \/>\n<meta property=\"article:published_time\" content=\"2017-08-08T11:26:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-10-01T07:29:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-1.gif\" \/>\n\t<meta property=\"og:image:width\" content=\"647\" \/>\n\t<meta property=\"og:image:height\" content=\"721\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/gif\" \/>\n<meta name=\"author\" content=\"Bruno Marotta\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Bruno Marotta\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.kopf.com.br\/kaplof\/how-to-solve-any-slide-puzzle-regardless-of-its-size\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.kopf.com.br\/kaplof\/how-to-solve-any-slide-puzzle-regardless-of-its-size\/\"},\"author\":{\"name\":\"Bruno Marotta\",\"@id\":\"https:\/\/www.kopf.com.br\/kaplof\/#\/schema\/person\/a096a6de30951e12938c6a800eeaa891\"},\"headline\":\"How to solve ANY slide puzzle regardless of its size\",\"datePublished\":\"2017-08-08T11:26:19+00:00\",\"dateModified\":\"2025-10-01T07:29:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.kopf.com.br\/kaplof\/how-to-solve-any-slide-puzzle-regardless-of-its-size\/\"},\"wordCount\":1022,\"commentCount\":15,\"publisher\":{\"@id\":\"https:\/\/www.kopf.com.br\/kaplof\/#organization\"},\"keywords\":[\"Puzzle\"],\"articleSection\":[\"Other\",\"Tips\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.kopf.com.br\/kaplof\/how-to-solve-any-slide-puzzle-regardless-of-its-size\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.kopf.com.br\/kaplof\/how-to-solve-any-slide-puzzle-regardless-of-its-size\/\",\"url\":\"https:\/\/www.kopf.com.br\/kaplof\/how-to-solve-any-slide-puzzle-regardless-of-its-size\/\",\"name\":\"How to solve ANY slide puzzle regardless of its size - Kaplof\",\"isPartOf\":{\"@id\":\"https:\/\/www.kopf.com.br\/kaplof\/#website\"},\"datePublished\":\"2017-08-08T11:26:19+00:00\",\"dateModified\":\"2025-10-01T07:29:49+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.kopf.com.br\/kaplof\/how-to-solve-any-slide-puzzle-regardless-of-its-size\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.kopf.com.br\/kaplof\/how-to-solve-any-slide-puzzle-regardless-of-its-size\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.kopf.com.br\/kaplof\/how-to-solve-any-slide-puzzle-regardless-of-its-size\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.kopf.com.br\/kaplof\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to solve ANY slide puzzle regardless of its size\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.kopf.com.br\/kaplof\/#website\",\"url\":\"https:\/\/www.kopf.com.br\/kaplof\/\",\"name\":\"Kaplof\",\"description\":\"Sharing problems and solutions for software development\",\"publisher\":{\"@id\":\"https:\/\/www.kopf.com.br\/kaplof\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.kopf.com.br\/kaplof\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.kopf.com.br\/kaplof\/#organization\",\"name\":\"Kopf\",\"url\":\"https:\/\/www.kopf.com.br\/kaplof\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.kopf.com.br\/kaplof\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2015\/04\/Logo-grande.png?fit=78%2C76&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2015\/04\/Logo-grande.png?fit=78%2C76&ssl=1\",\"width\":78,\"height\":76,\"caption\":\"Kopf\"},\"image\":{\"@id\":\"https:\/\/www.kopf.com.br\/kaplof\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.kopf.com.br\/kaplof\/#\/schema\/person\/a096a6de30951e12938c6a800eeaa891\",\"name\":\"Bruno Marotta\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.kopf.com.br\/kaplof\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8e15f82b4b9672c32c601286a40eb46f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8e15f82b4b9672c32c601286a40eb46f?s=96&d=mm&r=g\",\"caption\":\"Bruno Marotta\"},\"url\":\"https:\/\/www.kopf.com.br\/kaplof\/author\/bmarotta\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to solve ANY slide puzzle regardless of its size - Kaplof","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.kopf.com.br\/kaplof\/how-to-solve-any-slide-puzzle-regardless-of-its-size\/","og_locale":"en_US","og_type":"article","og_title":"How to solve ANY slide puzzle regardless of its size - Kaplof","og_description":"After seeing many people giving up while playing slide puzzles in the best free online puzzle site, I decided to write this fool proof fully illustrated guide to solve any slide puzzle (3&#215;3, 4&#215;4, 5&#215;5, &#8230;). I came to the solution while developing the website im-a-puzzle.com and observing that the A* like algorithms take too [&hellip;]","og_url":"https:\/\/www.kopf.com.br\/kaplof\/how-to-solve-any-slide-puzzle-regardless-of-its-size\/","og_site_name":"Kaplof","article_published_time":"2017-08-08T11:26:19+00:00","article_modified_time":"2025-10-01T07:29:49+00:00","og_image":[{"width":647,"height":721,"url":"https:\/\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-1.gif","type":"image\/gif"}],"author":"Bruno Marotta","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Bruno Marotta","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.kopf.com.br\/kaplof\/how-to-solve-any-slide-puzzle-regardless-of-its-size\/#article","isPartOf":{"@id":"https:\/\/www.kopf.com.br\/kaplof\/how-to-solve-any-slide-puzzle-regardless-of-its-size\/"},"author":{"name":"Bruno Marotta","@id":"https:\/\/www.kopf.com.br\/kaplof\/#\/schema\/person\/a096a6de30951e12938c6a800eeaa891"},"headline":"How to solve ANY slide puzzle regardless of its size","datePublished":"2017-08-08T11:26:19+00:00","dateModified":"2025-10-01T07:29:49+00:00","mainEntityOfPage":{"@id":"https:\/\/www.kopf.com.br\/kaplof\/how-to-solve-any-slide-puzzle-regardless-of-its-size\/"},"wordCount":1022,"commentCount":15,"publisher":{"@id":"https:\/\/www.kopf.com.br\/kaplof\/#organization"},"keywords":["Puzzle"],"articleSection":["Other","Tips"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.kopf.com.br\/kaplof\/how-to-solve-any-slide-puzzle-regardless-of-its-size\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.kopf.com.br\/kaplof\/how-to-solve-any-slide-puzzle-regardless-of-its-size\/","url":"https:\/\/www.kopf.com.br\/kaplof\/how-to-solve-any-slide-puzzle-regardless-of-its-size\/","name":"How to solve ANY slide puzzle regardless of its size - Kaplof","isPartOf":{"@id":"https:\/\/www.kopf.com.br\/kaplof\/#website"},"datePublished":"2017-08-08T11:26:19+00:00","dateModified":"2025-10-01T07:29:49+00:00","breadcrumb":{"@id":"https:\/\/www.kopf.com.br\/kaplof\/how-to-solve-any-slide-puzzle-regardless-of-its-size\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.kopf.com.br\/kaplof\/how-to-solve-any-slide-puzzle-regardless-of-its-size\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.kopf.com.br\/kaplof\/how-to-solve-any-slide-puzzle-regardless-of-its-size\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.kopf.com.br\/kaplof\/"},{"@type":"ListItem","position":2,"name":"How to solve ANY slide puzzle regardless of its size"}]},{"@type":"WebSite","@id":"https:\/\/www.kopf.com.br\/kaplof\/#website","url":"https:\/\/www.kopf.com.br\/kaplof\/","name":"Kaplof","description":"Sharing problems and solutions for software development","publisher":{"@id":"https:\/\/www.kopf.com.br\/kaplof\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.kopf.com.br\/kaplof\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.kopf.com.br\/kaplof\/#organization","name":"Kopf","url":"https:\/\/www.kopf.com.br\/kaplof\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.kopf.com.br\/kaplof\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2015\/04\/Logo-grande.png?fit=78%2C76&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2015\/04\/Logo-grande.png?fit=78%2C76&ssl=1","width":78,"height":76,"caption":"Kopf"},"image":{"@id":"https:\/\/www.kopf.com.br\/kaplof\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.kopf.com.br\/kaplof\/#\/schema\/person\/a096a6de30951e12938c6a800eeaa891","name":"Bruno Marotta","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.kopf.com.br\/kaplof\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8e15f82b4b9672c32c601286a40eb46f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8e15f82b4b9672c32c601286a40eb46f?s=96&d=mm&r=g","caption":"Bruno Marotta"},"url":"https:\/\/www.kopf.com.br\/kaplof\/author\/bmarotta\/"}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.kopf.com.br\/kaplof\/wp-content\/uploads\/2017\/08\/Solve-slide-Puzzle-step-1.gif?fit=647%2C721&ssl=1","_links":{"self":[{"href":"https:\/\/www.kopf.com.br\/kaplof\/wp-json\/wp\/v2\/posts\/154"}],"collection":[{"href":"https:\/\/www.kopf.com.br\/kaplof\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kopf.com.br\/kaplof\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kopf.com.br\/kaplof\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kopf.com.br\/kaplof\/wp-json\/wp\/v2\/comments?post=154"}],"version-history":[{"count":10,"href":"https:\/\/www.kopf.com.br\/kaplof\/wp-json\/wp\/v2\/posts\/154\/revisions"}],"predecessor-version":[{"id":293,"href":"https:\/\/www.kopf.com.br\/kaplof\/wp-json\/wp\/v2\/posts\/154\/revisions\/293"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.kopf.com.br\/kaplof\/wp-json\/wp\/v2\/media\/172"}],"wp:attachment":[{"href":"https:\/\/www.kopf.com.br\/kaplof\/wp-json\/wp\/v2\/media?parent=154"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kopf.com.br\/kaplof\/wp-json\/wp\/v2\/categories?post=154"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kopf.com.br\/kaplof\/wp-json\/wp\/v2\/tags?post=154"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}