{"id":4766,"date":"2025-06-02T21:32:50","date_gmt":"2025-06-02T21:32:50","guid":{"rendered":"https:\/\/glover.gen.nz\/wordpress\/?p=4766"},"modified":"2025-06-02T22:11:36","modified_gmt":"2025-06-02T22:11:36","slug":"the-numbers-game-ai-version-take-2","status":"publish","type":"post","link":"https:\/\/glover.gen.nz\/wordpress\/the-numbers-game-ai-version-take-2\/","title":{"rendered":"The Numbers Game &#8211; AI Version take 2"},"content":{"rendered":"<p>When I made my first attempt at using ChatGPT below, I had no real idea what I was doing, so did not log on to ChatGTP and eventually lost all my workings.<\/p>\n<p>So I did it again, on my computer rather than the phone and treated it as a project rather than just messing about.<\/p>\n<p>Still quite impressed with it&#8217;s knowledge and ability to translate my requests, and the finished product works, its just not very polished.<\/p>\n<p>Here is my <a href=\"https:\/\/chatgpt.com\/share\/683e19e4-b770-8012-a88f-2b12ecac8ad3\" target=\"_blank\" rel=\"noopener\">interaction with ChatGTP<\/a><\/p>\n<p>And the <a href=\"https:\/\/glover.gen.nz\/the_numbers_game_solver.html\" target=\"_blank\" rel=\"noopener\">working version of the code<\/a><\/p>\n<p>Finally, I asked it to summarise what I asked for into a neat efficient prompt that will get the same results :-<\/p>\n<blockquote><p>\nBuild an interactive HTML + JavaScript page that lets the user:<\/p>\n<p>Select 6 numbers from a set: four &#8220;large&#8221; numbers (25, 50, 75, 100) and two sets of small numbers (integers 1-10).<\/p>\n<p>Choose a target number between 100 and 999.<\/p>\n<p>Press a &#8220;Solve&#8221; button to try to match the target using all 6 numbers and exactly 5 operators from +, -, *, \/.<\/p>\n<p>Use only valid Reverse Polish Notation (RPN) expressions following BODMAS, where intermediate results must be positive integers (no negatives or decimals).<\/p>\n<p>Limit to the first 10 valid solutions found.<\/p>\n<p>Show each solution&#8217;s steps along a single line (e.g. 6+50=56 9+56=65 65\/5=13 &#8230;).<\/p>\n<p>Also show total combinations tried and time taken.<\/p>\n<p>Organize number selection buttons into 3 rows (large, small 1-10, small 1-10).<\/p>\n<p>Generate the complete downloadable HTML + JavaScript code.\n<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>When I made my first attempt at using ChatGPT below, I had no real idea what I was doing, so did not log on to ChatGTP and eventually lost all my workings. So I did it again, on my computer &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/glover.gen.nz\/wordpress\/the-numbers-game-ai-version-take-2\/\"> <span class=\"screen-reader-text\">The Numbers Game &#8211; AI Version take 2<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,26,9],"tags":[],"class_list":["post-4766","post","type-post","status-publish","format-standard","hentry","category-technical","category-numbers-game","category-programming"],"_links":{"self":[{"href":"https:\/\/glover.gen.nz\/wordpress\/wp-json\/wp\/v2\/posts\/4766","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/glover.gen.nz\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/glover.gen.nz\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/glover.gen.nz\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/glover.gen.nz\/wordpress\/wp-json\/wp\/v2\/comments?post=4766"}],"version-history":[{"count":6,"href":"https:\/\/glover.gen.nz\/wordpress\/wp-json\/wp\/v2\/posts\/4766\/revisions"}],"predecessor-version":[{"id":4772,"href":"https:\/\/glover.gen.nz\/wordpress\/wp-json\/wp\/v2\/posts\/4766\/revisions\/4772"}],"wp:attachment":[{"href":"https:\/\/glover.gen.nz\/wordpress\/wp-json\/wp\/v2\/media?parent=4766"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/glover.gen.nz\/wordpress\/wp-json\/wp\/v2\/categories?post=4766"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/glover.gen.nz\/wordpress\/wp-json\/wp\/v2\/tags?post=4766"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}