CharGPT has got a lot of hype on how it can write good codes and many are testing to find out if it can replace actual developers. The results show that it’s not ready yet and but its closing in fast. Leave your thoughts on this, in the comment box below.
What is ChatGPT?
Rather than writing the definition for your, we went ahead and asked ChatGPT what it really was? And here is the answer it gave.
“I am ChatGPT, a state-of-the-art language model developed by OpenAI. I am trained on a massive amount of text data and can generate text in a variety of styles and formats. I am used for a variety of tasks such as language translation, question answering, and text completion. My abilities are constantly improving as I am updated with new data and training techniques.”
We didn’t stop there. We asked a follow up question: Can you write codes?
“Yes, I can write code. I am trained on a wide variety of programming languages and can generate code snippets for a variety of tasks. However, please note that the quality of the code generated by me may vary depending on the complexity of the task and the quality of the input provided. It’s always a good idea to review and test any code before using it in a production environment.”
How well can ChatGPT code?
Let’s try a simple Unity code with ChatGPT. The most common code that new developers search for is to make the camera follow player in Unity. This is code that ChatGPT wrote
using UnityEngine;
public class CameraFollow : MonoBehaviour
{
public Transform target; // the object to follow
public float smoothSpeed = 0.125f;
public Vector3 offset;
void LateUpdate()
{
Vector3 desiredPosition = target.position + offset;
Vector3 smoothedPosition = Vector3.Lerp(transform.position, desiredPosition, smoothSpeed);
transform.position = smoothedPosition;
}
}
We tested ChatGPT code and it worked flawlessly.
So, does that mean ChatGPT can replace Game developers?
Well, if you are a programmer, you would have definitely copied a code from somewhere to make you game play work. Most people copy it from StackOverflow but now you can copy a more customized code from ChatGPT.
So, ChatGPT may replace StackOverFlow but not the developer. The day when ChatGPT or any other AI can make a game completely from scratch just by commands like ” Make a game like flappy bird with a start button and a scoring system”. If you put this question into ChatGPT, here is how the response looks like
This response makes it very clear that ChatGPT can be a good mentor for game developers but not their replacement. You can create a ChatGPT login and get started for free today.