{"id":4566,"date":"2026-11-05T16:25:54","date_gmt":"2026-11-05T21:25:54","guid":{"rendered":"https:\/\/blogs.mathworks.com\/matlab\/?p=4566"},"modified":"2026-11-05T16:25:54","modified_gmt":"2026-11-05T21:25:54","slug":"practice-agentic-coding-with-the-matlab-one-button-game-mini-hack","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/matlab\/2026\/11\/05\/practice-agentic-coding-with-the-matlab-one-button-game-mini-hack\/","title":{"rendered":"Practice agentic coding with the MATLAB One-Button Game Mini Hack"},"content":{"rendered":"<div class = rtcContent><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">MATLAB Central's <\/span><a href = \"https:\/\/uk.mathworks.com\/matlabcentral\/contests.html\" target=\"_self\"><span class=\"_richTextNode\">Mini Hack contests<\/span><\/a><span class=\"_richTextNode\"> have evolved quite a bit over the years. Back in <\/span><a href = \"https:\/\/uk.mathworks.com\/matlabcentral\/contests\/20th-anniversary-matlab-minihack.html?q=&amp;page=1\" target=\"_self\"><span class=\"_richTextNode\">2021<\/span><\/a><span class=\"_richTextNode\"> we asked competitors to produce a beautiful image using only 280 characters of MATLAB code. This format was so popular that we repeated it in <\/span><a href = \"https:\/\/uk.mathworks.com\/matlabcentral\/contests\/2022-matlab-mini-hack.html?q=&amp;page=1\" target=\"_self\"><span class=\"_richTextNode\">2022<\/span><\/a><span class=\"_richTextNode\">. In <\/span><a href = \"https:\/\/uk.mathworks.com\/matlabcentral\/contests\/2023-matlab-mini-hack.html\" target=\"_self\"><span class=\"_richTextNode\">2023<\/span><\/a><span class=\"_richTextNode\">, the character count was increased to 2,000 with the aim to produce a 2 second, 48 frame animated looping gif. In <\/span><a href = \"https:\/\/uk.mathworks.com\/matlabcentral\/contests\/2024-matlab-mini-hack.html?q=&amp;page=1\" target=\"_self\"><span class=\"_richTextNode\">2024<\/span><\/a><span class=\"_richTextNode\"> we kept the 2,000 character count but the video-length was increased to 12 seconds; one of the winning entries from that year is shown below.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><a href = \"https:\/\/uk.mathworks.com\/matlabcentral\/communitycontests\/contests\/8\/entries\/16252\" target=\"_self\"><img class = \"imageNode\" src = \"http:\/\/blogs.mathworks.com\/matlab\/files\/2026\/11\/oneButtonGame_1.gif\" width = \"198\" height = \"198\" alt = \"\" style = \"vertical-align: baseline; width: 198px; height: 198px;\"><\/img><\/a><\/div><h2  style = 'margin: 10px 10px 5px 4px; padding: 0px; line-height: 25px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: 700; text-align: left; '><span class=\"_richTextNode\">MATLAB One-Button Game Mini Hack<\/span><\/h2><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">The aim of <\/span><a href = \"https:\/\/uk.mathworks.com\/matlabcentral\/contests\/matlab-one-button-game-mini-hack.html?q=&amp;page=1\" target=\"_self\"><span class=\"_richTextNode\">this year's Mini Hack<\/span><\/a><span class=\"_richTextNode\"> is to produce a game using MATLAB but there's a catch!<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">Part of the fun of all of the previous competitions was dealing with the limitations. Indeed, while researching this article I discovered the concept of creative limitation and the quotation by artist Phil Hansen who <\/span><a href = \"https:\/\/blog.ted.com\/embrace-the-shake-phil-hansen-at-ted2013\/\" target=\"_blank\" rel=\"noopener\"><span class=\"_richTextNode\">said in his TED Talk<\/span><\/a><span class=\"_richTextNode\"> <\/span><span class=\"_richTextNode\" style=' font-style: italic;'>\"Embracing the limitation can actually drive creativity<\/span><span class=\"_richTextNode\"> \u2026 <\/span><span class=\"_richTextNode\" style=' font-style: italic;'>We need to first be limited in order to become limitless\"<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">The primary limitation in this year's competition is that you can only use one button; either a mouse click or the space-bar to control your game. It turns out that such 'one-button games' form an entire genre which go back at least a couple of decades so this isn't quite as limiting as you might originally think. <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">Secondary limitations are that your code must be 10,000 characters or less and that you should use MATLAB R2022b or above but in my experience so far, they are nothing to worry about.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">The competition started a few days ago and there are already a <\/span><a href = \"https:\/\/uk.mathworks.com\/matlabcentral\/communitycontests\/contests\/10\/entries\" target=\"_self\"><span class=\"_richTextNode\">bunch of fun entries which you can play in the gallery<\/span><\/a><span class=\"_richTextNode\">. <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">As a MathWorks employee, I am ineligible for any prizes and so feel no shame at all in promoting one of my entries, <\/span><a href = \"https:\/\/uk.mathworks.com\/matlabcentral\/communitycontests\/contests\/10\/entries\/16443\" target=\"_self\"><span class=\"_richTextNode\">Slalom Run<\/span><\/a><span class=\"_richTextNode\">. Here's a video of me playing it. The space bar changes the skier's direction<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><iframe class = \"onlineVideoNode\" src = \"https:\/\/www.youtube.com\/embed\/WcNAvGbQwbg\" width = \"560\" height = \"315\"><\/iframe><\/div><h2  style = 'margin: 10px 10px 5px 4px; padding: 0px; line-height: 25px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: 700; text-align: left; '><span class=\"_richTextNode\">Using the Mini Hack to sharpen your agentic coding skills<\/span><\/h2><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">While you are absolutely free to hand-code your entries if you wish; we actively encourage you to use this as an opportunity to practice your agentic coding skills. I already had the <\/span><a href = \"https:\/\/github.com\/matlab\/matlab-agentic-toolkit\/\" target=\"_blank\" rel=\"noopener\"><span class=\"_richTextNode\">MATLAB Agentic Toolkit<\/span><\/a><span class=\"_richTextNode\"> installed and so was up and running in minutes. <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">I downloaded and unzipped the <\/span><a href = \"https:\/\/uk.mathworks.com\/matlabcentral\/fileexchange\/185098-matlab-one-button-game-minihack-starter-project\" target=\"_self\"><span class=\"_richTextNode\">MATLAB One-Button Game Mini Hack Starter Project<\/span><\/a><span class=\"_richTextNode\">, pointed my agent to it instructed the AI to '<\/span><span class=\"_richTextNode\" style=' font-style: italic;'>Read <\/span><span class=\"_richTextNode\" style=' font-style: italic; font-family: monospace;'>AGENTS.md<\/span><span class=\"_richTextNode\" style=' font-style: italic;'> and help me build a skiing game'. <\/span><span class=\"_richTextNode\">That was enough to get started but getting a fun, playable game took rather more effort.<\/span><span class=\"_richTextNode\" style=' font-style: italic;'> <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">The <\/span><a href = \"https:\/\/uk.mathworks.com\/matlabcentral\/fileexchange\/185098-matlab-one-button-game-minihack-starter-project\/files\/AGENTS.md\" target=\"_self\"><span class=\"_richTextNode\">AGENTS.md file<\/span><\/a><span class=\"_richTextNode\"> is part of the not-so-secret sauce that makes all of this work so well and is essentially an agent skill that teaches your AI everything it (and you) needs to know in order to participate in the competition.  It will even help you install required tools such as the MATLAB Agentic Toolkit if you don't already have it. It also includes the form that the game must take, advice to the agent on how to test it, banned functions and operators and so on. <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\" style=' font-weight: bold;'>For more detailed instructions on how to get started using AI agents<\/span><span class=\"_richTextNode\"> for the contest, <\/span><a href = \"https:\/\/uk.mathworks.com\/matlabcentral\/discussions\/contest-channels\/891179-getting-started-using-agents-for-the-one-button-game-contest\" target=\"_self\"><span class=\"_richTextNode\">read this article by MathWorker David Wey<\/span><\/a><span class=\"_richTextNode\"> that even discusses how to set up local AI agents!<\/span><\/div><h2  style = 'margin: 10px 10px 5px 4px; padding: 0px; line-height: 25px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: 700; text-align: left; '><span class=\"_richTextNode\">The role of the human in the loop<\/span><\/h2><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">My advice to anyone who is embarking on their first steps with agentic coding is to start with low stakes situations. Learn the strengths and weaknesses of the tools in a domain that you understand but where it doesn't really matter if things go wrong.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">This competition is perfect for that! The only lives that can be lost are virtual and the worst possible outcome is someone telling you that your game is rubbish.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">In his excellent YouTube video, <\/span><a href = \"https:\/\/www.youtube.com\/watch?v=-D21ZoNGSQw\" target=\"_blank\" rel=\"noopener\"><span class=\"_richTextNode\" style=' font-weight: bold;'>6 Engineering Skills That AI Won't Replace<\/span><\/a><span class=\"_richTextNode\" style=' font-weight: bold;'>,<\/span><span class=\"_richTextNode\"> Brian Douglas discusses skills a good engineer needs in a world where the code is written by AI and I think that many of them apply to this competition.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">With a frontier AI model, you can produce a reasonable looking game in one short prompt. All the code will be there, it will run, it might even be fun! However, a great game will usually take more time. You need skills like <\/span><span class=\"_richTextNode\" style=' font-weight: bold;'>problem framing, understanding constraints, systems thinking and modeling judgment<\/span><span class=\"_richTextNode\">; just as 'proper' engineering and science requires. <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">One thing that I noticed is that the AI I used wasn't very good at coming up with something that was fun. With both of the games that I produced so far, I needed to do a lot of playing and tweaking before I felt that I had a game I'd want to spend some time with. <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">Coming up with an <\/span><span class=\"_richTextNode\" style=' font-weight: bold;'>original<\/span><span class=\"_richTextNode\"> game is even harder. Indeed, after looking at my first game <\/span><a href = \"https:\/\/uk.mathworks.com\/matlabcentral\/communitycontests\/contests\/10\/entries\/16440\" target=\"_self\"><span class=\"_richTextNode\">Orbit Hopper<\/span><\/a><span class=\"_richTextNode\">, Vinay correctly guessed which agent I used to create it since it seems that particular agent loves variations of this game! <\/span><\/div><h2  style = 'margin: 10px 10px 5px 4px; padding: 0px; line-height: 25px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: 700; text-align: left; '><span class=\"_richTextNode\">Playing and publishing your games<\/span><\/h2><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">While you are developing your own game, you can run it in MATLAB with the command<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"wpfixed-code-scroll\" tabindex=\"0\" role=\"region\" aria-label=\"MATLAB code\" style=\"width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; overflow-x: auto !important; overflow-y: hidden !important; padding-bottom: 0px;\"><div class=\"wpfixed-code-lines\" style=\"width: max-content; min-width: 100%; box-sizing: border-box;\"><div class=\"inlineWrapper\" style=\"overflow: visible !important;\"><div  style = 'border-left: 0px none rgb(33, 33, 33); border-right: 0px none rgb(33, 33, 33); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 21px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace, Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; text-indent: 0px; ; overflow: visible !important;'><span style=\"white-space: pre\"><span >minihackContest.play<\/span><\/span><\/div><\/div><\/div><\/div><\/div><div  style = 'margin: 10px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">which comes from the MATLAB One-Button Game Mini Hack Contest Toolkit that's installed by the Starter project. <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">To submit your current game to File Exchange you run the command<\/span><\/div><div style=\"background-color: #F5F5F5; margin: 10px 0 10px 0;\"><div class=\"wpfixed-code-scroll\" tabindex=\"0\" role=\"region\" aria-label=\"MATLAB code\" style=\"width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; overflow-x: auto !important; overflow-y: hidden !important; padding-bottom: 0px;\"><div class=\"wpfixed-code-lines\" style=\"width: max-content; min-width: 100%; box-sizing: border-box;\"><div class=\"inlineWrapper\" style=\"overflow: visible !important;\"><div  style = 'border-left: 0px none rgb(33, 33, 33); border-right: 0px none rgb(33, 33, 33); border-top: 0px none rgb(33, 33, 33); border-bottom: 0px none rgb(33, 33, 33); border-radius: 0px; padding: 0px 45px 0px 21px; line-height: 18.004px; min-height: 0px; white-space: nowrap; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace, Menlo, Monaco, Consolas, \"Courier New\", monospace; font-size: 14px; text-indent: 0px; ; overflow: visible !important;'><span style=\"white-space: pre\"><span >minihackContest.submit<\/span><\/span><\/div><\/div><\/div><\/div><\/div><div  style = 'margin: 10px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">As long as you are logged into your MathWorks account in your default web browser, this will publish your game directly to the <\/span><a href = \"https:\/\/uk.mathworks.com\/matlabcentral\/communitycontests\/contests\/10\/entries\" target=\"_self\"><span class=\"_richTextNode\">contest gallery<\/span><\/a><span class=\"_richTextNode\">.<\/span><\/div><h2  style = 'margin: 10px 10px 5px 4px; padding: 0px; line-height: 25px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: 700; text-align: left; '><span class=\"_richTextNode\">Playing other people's games<\/span><\/h2><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">Click on a game you like the look of in the contest gallery. For example here is an entry from Vinay Ramesh, the developer behind most of the contest's infrastructure.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><a href = \"https:\/\/uk.mathworks.com\/matlabcentral\/communitycontests\/contests\/10\/entries\/16429\" target=\"_self\"><img class = \"imageNode\" src = \"http:\/\/blogs.mathworks.com\/matlab\/files\/2026\/11\/oneButtonGame_2.gif\" width = \"343\" height = \"258\" alt = \"\" style = \"vertical-align: baseline; width: 343px; height: 258px;\"><\/img><\/a><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">Click on the gif and you'll be taken to that entry's page where you'll see the Play Game button.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><a href = \"https:\/\/drive.mathworks.com\/sharing\/983dbc02-7a5f-44d2-bf35-a567b2322ba8\/Entry16429.mlapp\" target=\"_self\"><img class = \"imageNode\" src = \"http:\/\/blogs.mathworks.com\/matlab\/files\/2026\/11\/oneButtonGame_3.png\" width = \"604\" height = \"76\" alt = \"\" style = \"vertical-align: baseline; width: 604px; height: 76px;\"><\/img><\/a><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">Click on that, and you'll be taken to where the game lives in MATLAB Drive where you'll find a <\/span><span class=\"_richTextNode\" style=' font-weight: bold;'>Run this App<\/span><span class=\"_richTextNode\"> button which will allow you to play the game itself in MATLAB online.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><a href = \"https:\/\/drive.mathworks.com\/sharing\/983dbc02-7a5f-44d2-bf35-a567b2322ba8\/Entry16429.mlapp\" target=\"_self\"><img class = \"imageNode\" src = \"http:\/\/blogs.mathworks.com\/matlab\/files\/2026\/11\/oneButtonGame_4.png\" width = \"588\" height = \"38\" alt = \"\" style = \"vertical-align: baseline; width: 588px; height: 38px;\"><\/img><\/a><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">You can also click on 'Add to my Files' which will copy the game to your own MATLAB Drive. If you have <\/span><a href = \"https:\/\/uk.mathworks.com\/help\/matlab\/matlab_env\/install-matlab-drive.html\" target=\"_self\"><span class=\"_richTextNode\">MATLAB Connector<\/span><\/a><span class=\"_richTextNode\"> installed, this will sync with your Desktop MATLAB Drive and you'll then be able to run it in your Desktop MATLAB.<\/span><\/div><h2  style = 'margin: 10px 10px 5px 4px; padding: 0px; line-height: 25px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: 700; text-align: left; '><span class=\"_richTextNode\">Reading tips from other people (and contributing your own)<\/span><\/h2><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">The competition encourages people to share tips about how they developed their game in the MATLAB Discussions <\/span><a href = \"https:\/\/uk.mathworks.com\/matlabcentral\/discussions\/tips?page=1\" target=\"_self\"><span class=\"_richTextNode\">Tips and Tricks forum<\/span><\/a><span class=\"_richTextNode\">. Indeed, you need to have written a tricks and tips post in order to be eligible for any of the prizes. <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">So far, we are less than a day into the competition and we already have a couple of excellent posts:<\/span><\/div><ul  style = 'margin: 10px 0px 20px; padding-left: 0px; font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-size: 14px; '><li  style = 'margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap; '><span class=\"_richTextNode\">How Mohammad Aryayi <\/span><a href = \"https:\/\/uk.mathworks.com\/matlabcentral\/discussions\/tips\/891189-how-my-70-000-character-game-fit-into-10-000-characters\" target=\"_self\"><span class=\"_richTextNode\">made his 70,000 character game fit into 10,000 characters<\/span><\/a><\/li><li  style = 'margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap; '><span class=\"_richTextNode\">How <\/span><a href = \"https:\/\/uk.mathworks.com\/matlabcentral\/discussions\/tips\/891209-how-i-had-claude-create-a-game-that-can-be-played-using-a-single-button-club-night\" target=\"_self\"><span class=\"_richTextNode\">Jan Studnicka used Claude to create his game, Club Knight<\/span><\/a><\/li><\/ul><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">Remember, you need to make a Tips and Tricks post to be eligible for a prize! <\/span><\/div><h2  style = 'margin: 10px 10px 5px 4px; padding: 0px; line-height: 25px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: 700; text-align: left; '><span class=\"_richTextNode\">Over to you<\/span><\/h2><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">Go <\/span><a href = \"https:\/\/uk.mathworks.com\/matlabcentral\/communitycontests\/contests\/10\/entries\" target=\"_self\"><span class=\"_richTextNode\">play some games<\/span><\/a><span class=\"_richTextNode\"> and vote for your favorites, read <\/span><a href = \"https:\/\/uk.mathworks.com\/matlabcentral\/contests\/matlab-one-button-game-mini-hack.html?q=&amp;page=1\" target=\"_self\"><span class=\"_richTextNode\">the contest rules<\/span><\/a><span class=\"_richTextNode\"> which includes prizes, set up <\/span><a href = \"https:\/\/uk.mathworks.com\/matlabcentral\/discussions\/contest-channels\/891179-getting-started-using-agents-for-the-one-button-game-contest\" target=\"_self\"><span class=\"_richTextNode\">your agentic AI environment<\/span><\/a><span class=\"_richTextNode\">, build a game, submit to the gallery and then tell us about your experiences in the <\/span><a href = \"https:\/\/uk.mathworks.com\/matlabcentral\/discussions\/tips\" target=\"_self\"><span class=\"_richTextNode\">Tips and Tricks forum<\/span><\/a><span class=\"_richTextNode\">.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">This contest runs for 4 weeks. It begins on November 2nd, 2026 at 00:00:00 am EST and ends on November 29th, 2026 at 11:59:59 pm EST.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif, Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span class=\"_richTextNode\">Have fun!<\/span><\/div>\r\n<\/div><script id=\"wpfixed-code-scroll-layout\">\r\n(function () {\r\n    \"use strict\";\r\n\r\n    function initialize() {\r\n        if (window.wpfixedCodeScrollLayout) {\r\n            window.wpfixedCodeScrollLayout.refresh();\r\n            return;\r\n        }\r\n\r\n        var pending = false;\r\n        var observed = new WeakSet();\r\n        var observer = typeof ResizeObserver === \"function\" ? new ResizeObserver(schedule) : null;\r\n\r\n        function update() {\r\n            pending = false;\r\n            document.querySelectorAll(\".wpfixed-code-scroll\").forEach(function (group) {\r\n                var lines = group.querySelector(\".wpfixed-code-lines\");\r\n                if (!lines) {\r\n                    return;\r\n                }\r\n                if (observer && !observed.has(group)) {\r\n                    observer.observe(group);\r\n                    observer.observe(lines);\r\n                    observed.add(group);\r\n                }\r\n                \/\/ Overlay scrollbars need clearance only when there is overflow.\r\n                var padding = group.scrollWidth > group.clientWidth + 1 ? \"18px\" : \"0px\";\r\n                if (group.style.paddingBottom !== padding) {\r\n                    group.style.paddingBottom = padding;\r\n                }\r\n            });\r\n        }\r\n\r\n        function schedule() {\r\n            if (!pending) {\r\n                pending = true;\r\n                requestAnimationFrame(update);\r\n            }\r\n        }\r\n\r\n        window.wpfixedCodeScrollLayout = { refresh: schedule };\r\n        window.addEventListener(\"resize\", schedule);\r\n        window.addEventListener(\"load\", schedule, { once: true });\r\n        if (document.fonts && document.fonts.ready) {\r\n            document.fonts.ready.then(schedule);\r\n        }\r\n        schedule();\r\n    }\r\n\r\n    if (document.readyState === \"loading\") {\r\n        document.addEventListener(\"DOMContentLoaded\", initialize, { once: true });\r\n    } else {\r\n        initialize();\r\n    }\r\n}());\r\n<\/script><script type=\"text\/javascript\">var css = '._richTextNode {white-space: break-spaces;}'; var head = document.head || document.getElementsByTagName('head')[0], style = document.createElement('style'); head.appendChild(style); style.type = 'text\/css'; if (style.styleSheet){ style.styleSheet.cssText = css; } else { style.appendChild(document.createTextNode(css)); }<\/script>","protected":false},"excerpt":{"rendered":"<div class=\"overview-image\"><img src=\"https:\/\/blogs.mathworks.com\/matlab\/files\/2026\/11\/oneButtonGame_2.gif\" class=\"img-responsive attachment-post-thumbnail size-post-thumbnail wp-post-image\" alt=\"\" decoding=\"async\" loading=\"lazy\" \/><\/div><p>MATLAB Central's Mini Hack contests have evolved quite a bit over the years. Back in 2021 we asked competitors to produce a beautiful image using only 280 characters of MATLAB code. This format was... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/matlab\/2026\/11\/05\/practice-agentic-coding-with-the-matlab-one-button-game-mini-hack\/\">read more >><\/a><\/p>","protected":false},"author":176,"featured_media":4562,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[144,63,39],"tags":[],"class_list":["post-4566","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-agentic-ai","category-fun","category-mathworks-community"],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/posts\/4566","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/users\/176"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/comments?post=4566"}],"version-history":[{"count":1,"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/posts\/4566\/revisions"}],"predecessor-version":[{"id":4567,"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/posts\/4566\/revisions\/4567"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/media\/4562"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/media?parent=4566"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/categories?post=4566"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/tags?post=4566"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}