ChatGPT created the ultimate Python camera race

table of contents
Hello,
the Walking Security Hole
System Solutions Department.
It's June. I wonder when we'll have a holiday. It's
been raining so much that it's driving me crazy, so I decided to play around with ChatGPT (3.5) (I'm still working hard).
the Python turtle race I wrote about in an article a while ago even stronger with ChatGPT. Maybe the title "Ultimate" is an exaggeration.
Operating environment and original code
- Windows11 Pro
- Python 3.11.1
- GPT-3.5
It would be too long to paste, so the code here

1st time
For now, I told him to make it more fun

▼The finished turtle race

Huh, it's the same as before..
Let's pull ourselves together and try again
Maybe I didn't communicate it well, so I added "ultra aggressive"

Yeah, I'm really into it so I think it'll work

▼Complete

Well,
it's become a little more aggressive, but I still feel like there's a long way to go.
Third time
I'm tired of this so I'll ask for "chaos"
![]()
This is starting to sound a lot like a description of Disneyland, so I'm looking forward to it this time

▼Complete

Oh, I feel like I'm getting closer.
Is this the chaos that ChatGPT thinks of?
Final Challenge
I asked for more turtles and for them to explode
![]()
At this point, ChatGPT is in the same boat.
I'm grateful that they're willing to go along with my unreasonable requests.

▼Completed code
from turtle import * from random import randint, choice import time # Prepare for an explosive extravaganza! bgcolor('black') colors = ['red', 'blue', 'orange', 'green', 'purple', 'yellow', 'white'] shapes = ['turtle', 'classic', 'arrow', 'circle', 'square', 'triangle', 'turtle'] # Create a legion of turtles turtles = [] num_turtles = 100 # Increase or decrease this value for more or fewer turtles for _ in range(num_turtles): turtle = Turtle() turtle.color(choice(colors)) turtle.shape(choice(shapes)) turtle.penup() turtle.goto(randint(-300, 300), randint(-300, 300)) turtle.speed(randint(5, 15)) turtles.append(turtle) # Ignite the explosion! time.sleep(2) def explode(turtle): turtle.shapesize(3) turtle.color('red') turtle.speed(10) for _ in range(36): turtle.right(10) turtle.stamp() # Let the explosion begin! for race in range(100): for turtle in turtles: turtle.forward(randint(5, 20)) if turtle.distance(0, 0) < 100: explode(turtle)
In addition, I wrote that I would like to change the number of turtles, so I will make it 100

And this is the finished product⇩

It's no longer a race
I think it's an amazing feeling that can't be put into words
The possibilities seem endless.
See you next time!
~Complete~
16