{"id":6471,"date":"2025-08-24T19:17:49","date_gmt":"2025-08-24T10:17:49","guid":{"rendered":"https:\/\/the-world-star.com\/?p=6471"},"modified":"2026-11-14T17:59:29","modified_gmt":"2026-11-14T08:59:29","slug":"programming-with-ai-putting-copilot-to-the-test","status":"publish","type":"post","link":"https:\/\/the-world-star.com\/en\/games\/programming-with-ai-putting-copilot-to-the-test-6471\/","title":{"rendered":"Programming with AI: Putting Copilot to the Test"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I decided to test just how capable AI really is when it comes to programming.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To start off, I gave the free version of Copilot a shot.<br>&gt; Build a Tetris-like game<br><br><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"934\" height=\"807\" src=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2025\/08\/24163022\/image.png\" alt=\"\" class=\"wp-image-5711\" srcset=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2025\/08\/24163022\/image.png 934w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2025\/08\/24163022\/image-300x259.png 300w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2025\/08\/24163022\/image-768x664.png 768w\" sizes=\"auto, (max-width: 934px) 100vw, 934px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"945\" height=\"798\" src=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2025\/08\/24163308\/image-2.png\" alt=\"\" class=\"wp-image-5713\" srcset=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2025\/08\/24163308\/image-2.png 945w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2025\/08\/24163308\/image-2-300x253.png 300w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2025\/08\/24163308\/image-2-768x649.png 768w\" sizes=\"auto, (max-width: 945px) 100vw, 945px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Could it really be that simple? Boom\u2014Python code returned. Pretty amazing.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br>It turns out you can do this using Python and a library called Pygame. Since my Windows machine didn't have a compiler or dev environment set up, I casually typed \"python\" into the console... and it popped straight open to the Microsoft Store. Things sure have become convenient.<br><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"741\" height=\"533\" src=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2025\/08\/24163205\/image-1.png\" alt=\"\" class=\"wp-image-5712\" srcset=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2025\/08\/24163205\/image-1.png 741w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2025\/08\/24163205\/image-1-300x216.png 300w\" sizes=\"auto, (max-width: 741px) 100vw, 741px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">I went ahead and installed it...<br>Since it had been a while since I booted Windows, a mountain of updates kicked in, and the installation took quite some time.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Pygame is apparently a game development library for Python.<br>Following the instructions, I entered \"pip install pygame\", and Pygame was installed...<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"962\" height=\"240\" src=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2025\/08\/24175335\/image-5.png\" alt=\"\" class=\"wp-image-5717\" srcset=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2025\/08\/24175335\/image-5.png 962w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2025\/08\/24175335\/image-5-300x75.png 300w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2025\/08\/24175335\/image-5-768x192.png 768w\" sizes=\"auto, (max-width: 962px) 100vw, 962px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"367\" height=\"783\" src=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2025\/08\/24175616\/image-6.png\" alt=\"\" class=\"wp-image-5718\" srcset=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2025\/08\/24175616\/image-6.png 367w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2025\/08\/24175616\/image-6-141x300.png 141w\" sizes=\"auto, (max-width: 367px) 100vw, 367px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Whoa, it ran on the very first try without a single bug. Impressive! Who even needs programmers anymore? But then...<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Unlike when I gave it a quick test at work before, it didn't generate the entire code to the end. I'm testing the free tier right now. Maybe it's a different AI model? At work, we use Microsoft 365 Copilot for enterprise, so maybe the paid version performed better?<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"891\" height=\"396\" src=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2025\/08\/24164058\/image-3.png\" alt=\"\" class=\"wp-image-5714\" srcset=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2025\/08\/24164058\/image-3.png 891w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2025\/08\/24164058\/image-3-300x133.png 300w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2025\/08\/24164058\/image-3-768x341.png 768w\" sizes=\"auto, (max-width: 891px) 100vw, 891px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><br><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"842\" height=\"162\" src=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2025\/08\/24180032\/image-7.png\" alt=\"\" class=\"wp-image-5719\" srcset=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2025\/08\/24180032\/image-7.png 842w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2025\/08\/24180032\/image-7-300x58.png 300w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2025\/08\/24180032\/image-7-768x148.png 768w\" sizes=\"auto, (max-width: 842px) 100vw, 842px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Hmm, installing Python and getting it to run is great, but what next? If I ask it to build a web version, it'll probably need HTML and everything, and switching environments feels like a hassle. I'd love to try Unity, but downloading libraries and configuring it... maybe next time. Since I want to keep it simple, let's just stick to Python and have it add more features.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">My next prompt was: \"Actually, let's stick with Python and add features. Implement the top 5 features from your suggestions.\"<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"914\" height=\"556\" src=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2025\/08\/24180812\/image-8.png\" alt=\"\" class=\"wp-image-5720\" srcset=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2025\/08\/24180812\/image-8.png 914w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2025\/08\/24180812\/image-8-300x182.png 300w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2025\/08\/24180812\/image-8-768x467.png 768w\" sizes=\"auto, (max-width: 914px) 100vw, 914px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><br>And it built them. Incredible. Honestly, it's 100 times more competent than that self-proclaimed coding wizard rookie who joined us last year. The main function got a little messy\u2014which almost felt human\u2014but I'm sure it would clean that right up if asked to refactor.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Before doing that, though: the last time I made one, it had some object-oriented structure, whereas this code is completely different. Let's have it restructure the code with an object-oriented design first.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"902\" height=\"745\" src=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2025\/08\/24182109\/image-9.png\" alt=\"\" class=\"wp-image-5722\" srcset=\"https:\/\/static.the-world-star.com\/wp-content\/uploads\/2025\/08\/24182109\/image-9.png 902w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2025\/08\/24182109\/image-9-300x248.png 300w, https:\/\/static.the-world-star.com\/wp-content\/uploads\/2025\/08\/24182109\/image-9-768x634.png 768w\" sizes=\"auto, (max-width: 902px) 100vw, 902px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is awesome.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After this step, it split the classes into multiple files... but I'm not familiar with multi-file setups in Python. Sure, I could just ask it how, but I honestly don't know Python. C++ and Java, on the other hand, I know inside and out\u2014I'm an absolute expert when it comes to OOP design and C++ implementation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&gt; Please combine everything into a single file<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">And just like before, I could easily run it with &gt;python tetris3.py without any friction.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When an error popped up, I asked for help by pasting the error code, and it immediately explained the issue. It really feels like pair programming. Turns out, I had just copied too quickly and didn't paste all the code... Fixed that, and it worked like a charm.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&gt; Make holding down the down key trigger continuous movement.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It provided both the modified code snippet and the full updated script. It truly gets my preferences.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Finally, I asked it to create a web version. It packaged the web version into a single file as well, so it wasn't a hassle after all.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now, how should I publish this on WordPress?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I'll post the code on a separate page.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed\"><div class=\"wp-block-embed__wrapper\">\n\t\t\t<p class=\"vk-wp-oembed-blog-card-url-template\">\n\t\t\t\t<a href=\"https:\/\/the-world-star.com\/games\/post-194-5726\/\">https:\/\/the-world-star.com\/games\/post-194-5726\/<\/a>\n\t\t\t<\/p>\n\t\t\t\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><br>Copy the code above and save it with the filename tetris.py.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For Windows users, just install Python from the Microsoft Store.<br>Linux users already know the drill: &gt;sudo apt-get install python (or python3). Chances are you already have it installed anyway.<br>Then, whether you're on Windows or Linux, simply run pip install pygame,<br>and run the code:<br>&gt;python tetris.py<br> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>I decided to test just how capable AI really is when it comes to programming. To start off, I gave the free version of Copilot a shot.&gt; Build a Tetris-like game Could it really be that simple? Boom\u2014Python code returned. Pretty amazing. It turns out you can do this using Python and a library called [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":5711,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"en_US","_original_post":"https:\/\/175.41.248.22\/?p=5710","_lightning_design_setting":{"layout":"default"},"footnotes":""},"categories":[371],"tags":[513,514,515,1074],"class_list":["post-6471","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-games","tag-ai","tag-copilot","tag-gemini","tag-game-development","en-US"],"_links":{"self":[{"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/posts\/6471","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/comments?post=6471"}],"version-history":[{"count":2,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/posts\/6471\/revisions"}],"predecessor-version":[{"id":6475,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/posts\/6471\/revisions\/6475"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/media\/5711"}],"wp:attachment":[{"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/media?parent=6471"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/categories?post=6471"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/the-world-star.com\/wp-json\/wp\/v2\/tags?post=6471"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}