I'm currently working on a game in Unity, not an easy task. I did employ the use of ChatGPT to help prototype the core structure of my game (Simon Says, because why not?)
The results are incredible. It made every change I wanted, and even removed whitespace when asked. It complained about the code not being readable, but I guess that's not the point of this jam ;)
using System;using System.Linq;namespace SimonSaysGame{class P{static void Main(string[] a){Console.WriteLine("Welcome to Simon Says!");int[] s = new int[1];s[0] = R();Console.WriteLine("Simon says: " + string.Join(", ", s));Console.WriteLine("Repeat the sequence one color at a time (1 = red, 2 = green, 3 = blue, 4 = yellow):");for (int i = 0; i < s.Length; i++){Console.Write($"Color #{i+1}: ");int p = int.Parse(Console.ReadLine());if (p != s[i]){Console.WriteLine("Game over!");return;}}Console.WriteLine("You win!");}static int R(){Random r = new Random();int n = r.Next(1, 5);return n;}}}
Overall, not bad stuff. It did every request I ask, and it came out to 572 characters long (probably long due to the Console.Writelines and strings associated with them). Overall, I'm impressed, still needs a massive amount of engineering in order to get it into Unity and then cut the code down in size.
Just as an experiment, I asked it to fit the code into 500 characters, and it pulls this off:
using System;namespace S{class P{static void Main(string[]a){Console.WriteLine("Simon Says!");int[]s=new int[1];s[0]=R();Console.WriteLine("Simon says: "+string.Join(", ",s));Console.WriteLine("Repeat the sequence (1=red,2=green,3=blue,4=yellow):");for(int i=0;i<s.Length;i++){Console.Write($"Color #{i+1}:");int p=int.Parse(Console.ReadLine());if(p!=s[i]){Console.WriteLine("Game over!");return;}}Console.WriteLine("You win!");}static int R(){Random r=new Random();int n=r.Next(1,5);return n;}}}
Verified it with a character counter: 496 characters total.
The question now becomes, is constructive use of Chat-GPT allowed? I don't plan on copy-pasting it to actually build the game, I'd rather take a much more thoughtful approach, but this at least gave me a feasibility look at whether it could be built or not.