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.

Recommended 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.

Giovanni Colantonio
As Digital Trends' Senior Gaming Editor, Giovanni Colantonio oversees all things video games at Digital Trends. As a veteran…
Epic Games brings down the hammer on Fortnite cheat makers
Fortnite Star Wars Visitor with Lightsaber

Epic Games has filed a new lawsuit against cheat makers Sincey Cheats and Vanta Cheats, citing both violations of Epic's terms in Fortnite and alleging that the defendants fraudulently impersonated Epic Games in an attempt to revoke the takedown of several YouTube videos. While lawsuits against cheat makers are nothing new (Bungie, Activision, Ubisoft, and Tencent Games have all previously filed lawsuits against distributors), impersonating an Epic employee is unusual.

The lawsuit targets not only the creators of these tools but also groups that resold the software. The cheats allowed players to see through walls and use auto-aim against opponents, rendering in-game cover meaningless and ensuring that every bullet hit its mark. According to Epic Games, Sincey Cheats — also known as Ediz Atas — has created and sold cheat software since January 2023.

Read more
Pragmata is a game from a bygone era, and that era rules
A man in a spacesuit holds a gun in Pragmata.

Most modern big-budget games don't have the most complicated sales pitches these days. Assassin's Creed Shadows? It's an open-world action-adventure game with stealth. Doom: The Dark Ages? It's a first-person shooter with some extra melee combat. The First Berserker: Khazan? Soulslike. They all have elevator pitches that are easy to boil down to a quick genre descriptor. Capcom's Pragmata, on the other hand, is the rare modern AAA project that will make you sound like you're making a game up when describing it.

I know that feeling firsthand because it was playable for the first time at this year's Summer Game Fest. I had a demo scheduled for it on day two of the event, but those who played it before me kept hyping it up to me. I asked what it is, expecting a reply like "it's a third-person sci-fi shooter." Instead, I was given a sales pitch about how I had to do puzzles in order to shoot. I couldn't even picture what that looked like from the description, and that's exactly what makes Pragmata special. It is a throwback to a specific kind of early 2010s action game that is built around a wild idea that you need to try to truly appreciate.

Read more
Mario Kart World review: Nintendo’s big Switch 2 debut delivers where it counts
Excellent racing makes up for a tacked on open-world in Mario Kart's most ambitious installment to date.
Mario and Peach racing in the foreground of a screenshot of Mario Kart World.

BUY NOW

How do you keep players coming back to a game for 10 years? Many studios have fallen into last place in pursuit of that answer, but Nintendo is determined to find it and claim the ultimate prize with Mario Kart World.

Read more