Trying SDL2 in C with help from AI Programming
So I wanted to try out how much AI technology has advanced since ChatGPT 3. I had it write a C program using SDL2. Surprisingly it did quite well. I used ChatGPT before to create an OpenGL app, so this time I tried CoPilot. Actually, it started as a PyGame created by CoPilot AI. It was converted by AI from Python to C using SDL2. It's been through about eight iterations, and it's a nice casual game. The Python version played without issue on Windows 11, MacOS, and Linux. Thus far the SDL2 version has been successfully compiled and tested on MacOS and Linux. One thing that really surprised me with the C version is that the code provided by AI compiled without issue! I had the same surprise back with ChatGPT v3 when I had it create an OpenGL program in C of three triangles bouncing around the screen--it created the code and the code compiled successfully! I even asked ChatGPT how to configure Visual Studio to compile the OpenGL code, and it provided the correct steps to do so. I...