[Osaka/Yokohama/Tokushima] Looking for infrastructure/server side engineers!

[Osaka/Yokohama/Tokushima] Looking for infrastructure/server side engineers!

[Deployed by over 500 companies] AWS construction, operation, maintenance, and monitoring services

[Deployed by over 500 companies] AWS construction, operation, maintenance, and monitoring services

[Successor to CentOS] AlmaLinux OS server construction/migration service

[Successor to CentOS] AlmaLinux OS server construction/migration service

[For WordPress only] Cloud server “Web Speed”

[For WordPress only] Cloud server “Web Speed”

[Cheap] Website security automatic diagnosis “Quick Scanner”

[Cheap] Website security automatic diagnosis “Quick Scanner”

[Reservation system development] EDISONE customization development service

[Reservation system development] EDISONE customization development service

[Registration of 100 URLs is 0 yen] Website monitoring service “Appmill”

[Registration of 100 URLs is 0 yen] Website monitoring service “Appmill”

[Compatible with over 200 countries] Global eSIM “Beyond SIM”

[Compatible with over 200 countries] Global eSIM “Beyond SIM”

[If you are traveling, business trip, or stationed in China] Chinese SIM service “Choco SIM”

[If you are traveling, business trip, or stationed in China] Chinese SIM service “Choco SIM”

[Global exclusive service] Beyond's MSP in North America and China

[Global exclusive service] Beyond's MSP in North America and China

[YouTube] Beyond official channel “Biyomaru Channel”

[YouTube] Beyond official channel “Biyomaru Channel”

ChatGPT created the ultimate Python camera race

Hello,
Arubu Security Hole
System Solutions Department.

It's June. When can we celebrate holidays?
It's been raining a lot and I'm having trouble with my head, so I decided to hang out with ChatGPT (3.5) (who does a good job).
the Python camera race which I wrote about in an article a long time ago , even stronger. The ultimate title may be an exaggeration.

Operating environment and original code

- Windows11 Pro
- Python 3.11.1
- GPT-3.5

It will be long if you paste it, so please the code here.

1st time

For now, I told him to make it more fun.

▼Completed turtle race

Eh, it's the same as before...

The second time I regained my composure

Maybe I didn't convey it well, so I added "ultra aggressive"

Yeah, yeah, I feel like I'm going to be able to do it because I'm really in a good mood.

▼Complete

Hmm,
I've become a little more aggressive, but I still feel like I'm still a bit more aggressive.

3rd time

It's already too troublesome, so I'll ask you to make it chaotic.

It's starting to sound like an explanation of Disneyland, so I'm looking forward to it this time.

▼Complete

Oh, I feel like we're getting a little closer.
Is this the chaos ChatGPT thinks it is?

final challenge

I asked them to add more turtles and make them explode.

At this point, ChatGPT is also a success.
I'm grateful that you're willing to take advantage of my reckless behavior.

▼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)

Additionally, please change the number of turtles! I wrote that, so I'll make it 100.

And this is what was completed ⇩

It's no longer a race
I feel like I have a terrible feeling that I can't express in words.

It feels like the possibilities are endless.
See you soon!

~Complete~

If you found this article helpful , please give it a like!
16
Loading...
16 votes, average: 1.00 / 116
784
X facebook Hatena Bookmark pocket
[2025.6.30 Amazon Linux 2 support ended] Amazon Linux server migration solution

[2025.6.30 Amazon Linux 2 support ended] Amazon Linux server migration solution

The person who wrote this article

About the author

Kawa Ken


A curious Poke○n who belongs to the System Solution Department.