Fri 26 September 2025

Rock Paper Scissors Arena Simulation

Posted by Al Sweigart in misc   

As part of an AI-generated code experiment, I had ChatGPT 5 create a Rock Paper Scissors "arena simulator" where different emojis play a game of tag. Emoji converts the "prey" emoji that they catch. This idea follows the tradition of "spatial rock paper scissors" simulations, such as this Julia-language "agents" framework example. I did multiple attempts, but you can view one chat log here.. You can download the rpsarena package from PyPI and see the source code in its git repo. The rpsarena package uses tkinter and has no dependencies outside of the Python standard library. After installing, run python -m rpsarena --help to view instructions on how to set up a game.

Read more...


Mon 22 September 2025

Fractal Art Maker for Python Turtle.py

Posted by Al Sweigart in misc   

Fractals are beautiful, self-similar patterns that can be created by a computer from very simple rules. My Fractal Art Maker package makes it easy to use Python's turtle.py package to draw your own. You don't need to know recursion, but you can read my free book, The Recursive Book of Recursion if you're curious. If you want to learn how to draw pictures with Python code, I also have The Simple Turtle Tutorial.

Read more...


Thu 18 September 2025

Turtle Colors and RGB App

Posted by Al Sweigart in misc   

I've been working on turtle-related projects and I needed a simple, interactive, single-file Python program to explain RGB color values. I wrote this one up as part of my work writing a Simple Turtle Tutorial written in Wikipedia-style Simple English so it can be translated to non-English languages. You can download the app from PyPI and look at its code on its git repo

Read more...


Wed 17 September 2025

Automate the Boring Stuff Workbook Now Available for Preorder

Posted by Al Sweigart in misc   

"This workbook transforms Al Sweigart’s best-selling guide from a reading experience into a coding experience. Following Automate the Boring Stuff with Python chapter by chapter, this workbook will help you turn concepts into muscle memory through carefully designed exercises, projects, and real Python scripts."
Thumbnail cover of Automate the Boring Stuff with Python Workbook
Preorder links: Direct From the Publisher (preferred) | Amazon | Barnes and Noble | Bookshop.org | Powell's | Kobo | Thriftbooks | Goodreads

Read more...



Mon 15 September 2025

List of 87 Programming Ideas for Beginners

Posted by Al Sweigart in misc   

After you've learned the basic concepts, the best way to improve your coding skills is to work on projects. You may not know enough to contribute to popular open source projects, but you can create small programs on your own. Here's a list of 81 projects suitable for beginners. They're short, can be done in any language, and don't require additional software library installation. These projects are drawn from my free books, The Big Book of Small Python Projects, Cracking Codes with Python, and Invent Your Own Computer Games with Python. Each program has a link to a sample Python implementation, but I encourage you to make it from scratch.

Read more...





Wed 20 August 2025

Vibe Coding Experiment Failures

Posted by Al Sweigart in misc   

Over the past week I've been experimenting with vibe coding: asking LLMs such as ChatGPT, Claude, and Gemini write entire apps as if I had absolutely no programming ability at all. LLMs can easily solve programming challenges or interview questions. But I wanted to see how far the current LLMs can go when asked to make complete apps, and what kinds of failure patterns emerge. From the role of a non-programmer, I would only be able to fix bugs by describing them to the LLM. For simplicity, I choose small apps written in Python that use only the standard library and the tkinter package for the GUI. This blog post details the failures: the kinds of apps that AI just isn't capable of making.

Read more...