Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

I decided to take Chat-GPT for a test drive...

A topic by Josh McMillan created May 10, 2023 Views: 60 Replies: 1
Viewing posts 1 to 2

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. 

HostSubmitted(+1)

Basically anything Chat GPT spits up can be found through extensive Google searching, right? If it gets you where you're going, saves you a bunch of time, and doesn't make you feel like your own creative work has been negated, then I don't see why it should be disallowed!

Winning or losing TweetTweetJam is subjective, and how you get over the finish line is up to you. If you feel that using Chat GPT doesn't break the boundaries you've set for yourself, then go ahead! It's on you to decide. :)