{"id":21001,"date":"2025-07-27T12:26:25","date_gmt":"2025-07-27T11:26:25","guid":{"rendered":"https:\/\/johnjohnston.info\/blog\/?p=21001"},"modified":"2025-07-27T12:29:35","modified_gmt":"2025-07-27T11:29:35","slug":"guess-the-cubomania","status":"publish","type":"post","link":"https:\/\/johnjohnston.info\/blog\/guess-the-cubomania\/","title":{"rendered":"Guess the cubomania"},"content":{"rendered":"\n<p>A couple of days ago I saw a &#8220;guess the cubomania&#8221; challenge from Theo. I&#8217;ve had an <a href=\"https:\/\/johnjohnston.info\/blog\/tag\/cubomania\/\">interest in Cubomania<\/a> in the past and <a href=\"https:\/\/johnjohnston.info\/oddsandends\/cubomaniagif.html\">played around<\/a> with the idea <a href=\"https:\/\/johnjohnston.info\/106\/tag\/cubomania\/\">a bit<\/a>. After a chat with D. who gave me a few engravers I googled a bit and guessed, wrongly, Goya.<\/p>\n\n\n\n<p>Next I thought to ask ChatGPT. It suggested it could match by image matching techniques, gave me a fairly obviously wrong first row and ran out of credit.<\/p>\n\n\n\n<p>I then thought to ask Claude to make me an interactive page where I could drag things around. It made a couple of not very good attempts.<\/p>\n\n\n\n<p>I was thinking about a better prompt, when I remembered and asked:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Could we use the whole image for each piece but \u2018crop\u2019 it with css?<\/p>\n<\/blockquote>\n\n\n\n<p>Claude replied:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Brilliant idea! Yes, we can absolutely use CSS to create a \u201cwindow\u201d effect where each piece shows only its portion of the full image. This is much more elegant than trying to extract individual pieces.\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b<\/p>\n<\/blockquote>\n\n\n\n<p>I was flattered<sup data-fn=\"56dba22e-d735-4eec-9d5a-4361ca636a3b\" class=\"fn\"><a href=\"#56dba22e-d735-4eec-9d5a-4361ca636a3b\" id=\"56dba22e-d735-4eec-9d5a-4361ca636a3b-link\">1<\/a><\/sup> and when Claude came up with another fail I decided to abandon AI and DIY. This turned out a lot better. I started by remembering <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/background-position\">background-position<\/a> and finding <a href=\"https:\/\/interactjs.io\/\">interact.js <\/a>. The last time I did any drag and drop I dimly recall some sort of jQuery and a shim for mobile\/tablets. interact.js did a grand job for my simple needs. It was probably overkill as it seems to do a lot more.<\/p>\n\n\n\n<p><a href=\"https:\/\/pi.johnj.info\/cubosolver\/\">Cubomania Solver<\/a><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"673\" data-attachment-id=\"21004\" data-permalink=\"https:\/\/johnjohnston.info\/blog\/guess-the-cubomania\/cubomania-puzzle-solved\/\" data-orig-file=\"https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2025\/07\/cubomania-puzzle-solved.png\" data-orig-size=\"1200,789\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"cubomania-puzzle-solved\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2025\/07\/cubomania-puzzle-solved-1024x673.png\" src=\"https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2025\/07\/cubomania-puzzle-solved-1024x673.png\" alt=\"Partially completed sliding tile puzzle on a yellow background, featuring black and white sketch-style artwork. Some tiles are in place forming parts of faces and figures, while others are missing or scattered around the screen.\" class=\"wp-image-21004\" srcset=\"https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2025\/07\/cubomania-puzzle-solved-1024x673.png 1024w, https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2025\/07\/cubomania-puzzle-solved-620x408.png 620w, https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2025\/07\/cubomania-puzzle-solved-768x505.png 768w, https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2025\/07\/cubomania-puzzle-solved-668x439.png 668w, https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2025\/07\/cubomania-puzzle-solved.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Screenshot<\/figcaption><\/figure>\n<\/div>\n\n\n<p>It is pretty simple stuff, but potentially a lot of fun, different images, making cubomania puzzles who knows. I did extend it a bit, learning about localStorage (to save any progress) and the dialogue tag. All without AI but few visits to <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTML\/Reference\">HTML reference &#8211; HTML | MDN<\/a> and the odd search.<\/p>\n\n\n\n<p>I had a lot of fun with this, more than if I had just managed to get either of the AIs it to do the whole thing. What it did make me think of is that AI chat was useful for working out what I wanted to do and how to do it. I could probably have done that bit too all by myself. Usually I just start messing about and see what happens. This points to a bit of planning, or maybe typing some notes\/pseudocode\/outline might work for me when I am playing.<\/p>\n\n\n<ol class=\"wp-block-footnotes\"><li id=\"56dba22e-d735-4eec-9d5a-4361ca636a3b\">See: <a href=\"https:\/\/observer.co.uk\/news\/columnists\/article\/the-machine-began-to-waffle-and-then-the-conductor-went-in-for-the-kill\">The machine began to waffle \u2013 and then the conductor went\u2026<\/a> In the paper the title was <strong>Artificial Intelligence: The Technology that lies to say yes.<\/strong> <a href=\"#56dba22e-d735-4eec-9d5a-4361ca636a3b-link\" aria-label=\"Jump to footnote reference 1\">\u21a9\ufe0e<\/a><\/li><\/ol>\n\n\n<p>The Featured Image of this post was generated by ChatGPT in response to &#8221; I want an image of a chatbot character chatting with a person, friendly, helpful &amp; futuristic.&#8221; It has been run through <a href=\"https:\/\/johnjohnston.info\/oddsandends\/cubomaniagif.html\">Cubomania Gif!<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A couple of days ago I saw a &#8220;guess the cubomania&#8221; challenge from Theo. I&#8217;ve had an interest in Cubomania in the past and played around with the idea a bit. After a chat with D. who gave me a few engravers I googled a bit and guessed, wrongly, Goya. Next I thought to ask [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":21005,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"mf2_syndication":["https:\/\/social.ds106.us\/@johnjohnston\/114924954921594695"],"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"webmentions_disabled_pings":false,"webmentions_disabled":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"[{\"content\":\"See: <a href=\\\"https:\/\/observer.co.uk\/news\/columnists\/article\/the-machine-began-to-waffle-and-then-the-conductor-went-in-for-the-kill\\\">The machine began to waffle \u2013 and then the conductor went\u2026<\/a> In the paper the title was <strong>Artificial Intelligence: The Technology that lies to say yes.<\/strong>\",\"id\":\"56dba22e-d735-4eec-9d5a-4361ca636a3b\"}]"},"categories":[953,6],"tags":[957,831,80,1983],"post_format":[],"class_list":{"0":"post-21001","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-posse","8":"category-wwwd","9":"tag-ai","10":"tag-cubomania","11":"tag-fun","12":"tag-theo-kuechel","13":"kind-article","15":"h-entry","16":"hentry"},"better_featured_image":{"id":21005,"alt_text":"Ai generated picture of a AI bot talking to a human. Turned into a cubomania gif","caption":"","description":"","media_type":"image","media_details":{"width":400,"height":266,"file":"2025\/07\/ai-cubomania.gif","filesize":303910,"sizes":{"thumbnail":{"file":"ai-cubomania-150x150.gif","width":150,"height":150,"mime-type":"image\/gif","filesize":10986,"source_url":"https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2025\/07\/ai-cubomania-150x150.gif"},"jetpack-portfolio-admin-thumb":{"file":"ai-cubomania-50x50.gif","width":50,"height":50,"mime-type":"image\/gif","filesize":2552,"source_url":"https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2025\/07\/ai-cubomania-50x50.gif"}},"image_meta":{"aperture":"0","credit":"","camera":"","caption":"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"","orientation":"0","keywords":[]}},"post":21001,"source_url":"https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2025\/07\/ai-cubomania.gif"},"jetpack_featured_media_url":"https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2025\/07\/ai-cubomania.gif","jetpack_shortlink":"https:\/\/wp.me\/p57zFQ-5sJ","jetpack_likes_enabled":false,"jetpack_sharing_enabled":true,"kind":false,"_links":{"self":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts\/21001","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/comments?post=21001"}],"version-history":[{"count":2,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts\/21001\/revisions"}],"predecessor-version":[{"id":21006,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts\/21001\/revisions\/21006"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/media\/21005"}],"wp:attachment":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/media?parent=21001"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/categories?post=21001"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/tags?post=21001"},{"taxonomy":"post_format","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/post_format?post=21001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}