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.

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
Giovanni is a writer and video producer focusing on happenings in the video game industry. He has contributed stories to…
Prepare for Civilization 7 with this $3 Steam Summer Sale deal
civilization 6 recommendation steam summer sale

One of the most exciting announcements for PC gaming fans during Geoff Keighley's Summer Game Fest live stream this year was for Sid Meier's Civilization VII. It's the next entry in a long-running turn-based strategy game series about building up and thriving as a civilization from scratch. Although Sid Meier's Civilization VII does not come out until next year and doesn't even get a full gameplay reveal until August, this year's Steam Summer Sale provides players the perfect opportunity to catch up on the series.

Navigate to the Featured Deep Discounts section of the Steam Summer Sale and you'll find that Sid Meier's Civilization VI from Firaxis and 2K is available for just $3, a 95% discount from its typical $60 price tag. If you've never played a Civilization game before or want to familiarize yourself with the core tenets of the series ahead of its next entry, this Steam Summer Sale deal provides an optimal opportunity to check it out.

Read more
You really need to shut your brain off to enjoy The First Descendant
A man with a gun fights a robot in The First Descendant.

One month ago, I was sitting in a meeting room at Summer Game Fest about to go hands-on with The First Descendant. I was eager to see how Nexon's multiplayer looter shooter would shake up a space dominated by Warframe and Destiny 2. Before I could start, I was shown a long video presentation breaking down how the game works in exhaustive detail. I was instantly lost; it felt like I was reading gibberish. That confusion didn't clear up when I was tossed into a hub with no direction and had to be shepherded into a dungeon by a nearby PR person like a lost sheep.

I came away from that experience appreciating its sharp shooting and character-driven gameplay, but felt like I'd need to see the game in context to really get it. I wanted to know more about the world and its characters. I wanted to build a Descendant from the ground up instead of getting thrown into a hub. It felt like I was doing it a disservice by judging it based on a high-level activity that I couldn't possibly hope to understand.

Read more
They raised $50 million for charity with dusty consoles. Here’s how
A speedrunner playing a game at Awesome Games Done Quick.

$50 million. That's an unimaginable amount of money, but in the 14 years that Games Done Quick (GDQ) has been holding speedrunning marathons, that's how much money it's raised for charity. It's sure to be outdated by the time you're reading this article, too -- at the time of publishing, Summer Games Done Quick (SGDQ) 2024 in Minneapolis is entering its final push for donations, which will certainly add to the $50 million milestone.

Despite such a monumental total sum, GDQ says its median donation is just $25. It's millions of people, from eager fans to devoted volunteers and tight-knit staff, that make the biannual marathon stream happen. It certainly doesn't happen on its own. Twice a year, GDQ holds an event that runs for seven days, 24 hours per day, which is not only shown to a live audience in the thousands but also streamed live on Twitch for millions more.

Read more