I watched the South Park episode about ChatGPT and thought it was pretty funny. I am afraid of AI and its power in creating content because I consider myself creative. I had never tried any generative AI programs before using ChatGPT, but I was very interested in trying Stable Diffusion (image generation).
I signed up for the OpenAI website and clicked the Try ChatGPT Free button. It gives you a list of ideas as a guide and some notes about their capabilities and limitations.
I’m eager to see if ChatGPT can generate code. I don’t want to learn C++ but find it necessary. I thought that if I asked ChatGPT to write a program for me, it would be easy to understand and I wouldn’t have to struggle to find all the namespaces I needed to
A C++ program that “talks” to the user via the console.
After asking about the program, I chat with the AI about whatever I want to ask to get information about how it works. I asked if it had “memory” to see if any of my requests or questions would be stored server-side or if it would actually use the information provided in the chat to generate a response (My specific question was, “Have you ever seen an episode of South Park about ChatGPT?” and since he told me he couldn’t analyze video/audio that wasn’t publicly available/free on the internet, I asked “Have you heard about that episode to see if he used other users’ questions to inform him? he telling you me that “No. I did not take down your orders.” Of course.
I then made a program for elevators because I wanted to make a game in Unity about elevators (my floor only has one elevator shaft and that can be a pain; I thought it would be fun to have a game about elevators and their programming). I asked ChatGPT to generate an elevator for me and on the first command, it generated a pretty good (pretty basic) elevator class.
The first elevator class that ChatGPT gave me corresponded to the command I gave just above the response.
I gave him a few more hints to increase speed and acceleration and move as a function of those attributes over time. Anything I can think of in twenty minutes, I tell ChatGPT to do. I asked him to write readable code (Specifically I said, “Can you change the condition to a class method with a name that reflects its purpose). It worked. That’s writing a class that would easily take an hour or more in 20 minutes. At this time, I haven’t tested the class, but it’s been a great experience and I’m excited to see what I can do with generative AI. I think this will save a lot of time and allow more creations as is done from Assembler to C and to other High Level Languages in programming.
You can see the code it generates in my GitHub repo here:
Gaming Hub
A gaming hub can refer to a central platform or space dedicated to gaming, where players can access games, interact with other gamers, and enjoy related content.