Skip to main content

GPT-4 created a playable version of Pong in under 60 seconds

GPT-4 has only been around for a day, but users are already learning the power of the new AI tool. One user claimed that the bot created a working version of Pong from scratch within 60 seconds.

GPT-4 is the latest AI model from OpenAI, the research group behind ChatGPT. It’s a Large Language Model (LLM) trained on data up to 2021 that can understand prompts and respond to them in natural language. It’s currently only available to ChatGPT Plus subscribers, though the tech is already being used to power tools like Microsoft’s Bing Chat service. After a day of tooling around, users have discovered that the powerful tool is capable of generating fully working code for games.

Related Videos

Pietro Schirano, design lead at financial company Brex, tweeted that he was able to get GPT-4 to create a working version of Pong in under 60 seconds. To accomplish that, he didn’t need to say much. After telling the bot that he wanted to create a “Pong-like game,” it quickly spit out some basic HTML and JavaScript as an example. That code produced a fully working version of Pong, minus the scoreboard.

I don’t care that it’s not AGI, GPT-4 is an incredible and transformative technology.

I recreated the game of Pong in under 60 seconds.
It was my first try.

Things will never be the same. #gpt4 pic.twitter.com/8YMUK0UQmd

— Pietro Schirano (@skirano) March 14, 2023

That isn’t the only game GPT-4 has generated thus far. Schirano similarly was able to get a working version of Breakout through similar means, as well as a rudimentary clone of Asteroids. Others have shared AI-created versions of Snake, Connect 4, and more.

Though the feat is impressive, it does deepen some debates about AI’s potential role in game development. Earlier this month, a ChatGPT user got the bot to generate an “original” puzzle game called Sumplete. Digital Trends soon discovered that multiple versions of Sumplete already exist, raising questions about how it “invented” the game. More troubling, we were able to get ChatGPT to “plagiarize” its own code for Sumplete by simply asking for it to generate a game with the same name.

GPT-4’s ability to recreate existing games could put the AI model down a slippery slope moving forward. At what point does it gain the ability to output code for more complex games like Super Mario Bros.? Could that create a legal problem for OpenAI down the road? At the rate the tech is evolving, we may find out soon.

Editors' Recommendations

Resident Evil 4: how to solve the Cave Shrine puzzles
A series of symbols in a circle.

There are a lot more optional -- and mandatory -- moments of exploration available to plyers in the Resident Evil 4 remake. One of the best examples comes in Chapter 4 when you are given the ability to move about the lake freely on your boat. Whether you found it by accident or got stuck while going along the main path, you will eventually have to solve two Cave Shrine puzzles in order to get your hands on the Church Key you need to move the story forward. If you found the altar the key is held on, you are likely at a loss as to where to go or what to do. There aren't a ton of places around the lake you can visit, but you can save a lot of time by letting us navigate you to the correct spots and lead you through these Cave Shrine puzzles in Resident Evil 4.
How to find and solve the Small Cave Shrine

The first location you're going to is at the far northeast end of the lake and is called the Small Cave Shrine. Make your way inside and you will come across a panel with a circle of buttons with unique symbols. Your goal here is to figure out which symbols to press, and in what order, to unlock the way to the key item you need.

Read more
Resident Evil 4: how to deface Ramon’s portrait
Leon looks at a portrait

Resident Evil 4 has a couple of requests worth taking on to help you trade for some sweet loot, but "The Disgrace of the Salazar Family" is perhaps the most satisfying. The note to start this quirky sidequest can be found hanging right by the gondola at the beginning of Chapter 12, and it asks you to deface the portrait of Ramon Salazar in the throne room of the castle. It's an odd request for a survival horror game, but if we're being frank, the little jerk has it coming. We'll tell you where to find his portrait and how to deface it.
How to find and deface Ramon's portrait
Ramon's portrait is found in the throne room of the castle, which means you'll need to do a bit of backtracking through some areas you've previously visited. You'll also run into a handful of challenging foes as you pass through the areas leading back to the throne room, so be prepared to put up a fight.

When you finally reach the throne room, you'll find Ramon's portrait hanging on the left wall of the room – a much smaller portrait compared to the others found on the back wall. Your first instinct may be to start slashing away at it with your knife or shooting bullets into his smug face, but the way to complete this request is actually a little more fun and juvenile than that.

Read more
How to solve the Castle Sword puzzle in Resident Evil 4 remake
Leon looking at murals of a knight.

The castle section of the Resident Evil 4 remake is one of the most diabolical. Aside from being visually distinct from the previous village area, this location is full of tougher enemies and deadlier traps. Once you've managed to escape from the dungeons and up into the castle proper, you will be blocked by a gate beside some images of a knight in different situations. Something is off about all of them, and one part missing entirely. This is the sword puzzle, but it isn't as straightforward as you might assume looking at it. Here's how to solve the Sword Puzzle and make your way into the Audience Chamber in Resident Evil 4.
How to solve the Castle Sword puzzle

The first thing you'll notice about this puzzle is that there are four murals of the knight, but only three swords to pick up in this room. The last sword is behind another locked gate, but this one you can open. The gate has three animals on it, an eagle, deer, and snake, which correspond to three different plates. As each one is activated, the symbols on the gate will light up to show you're on the right track. The deer can be activated by pulling the chain beside the gate, while the second two are on the other side of the gate to the right and need to be shot.

Read more