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

— 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

Giovanni Colantonio
Giovanni is a writer and video producer focusing on happenings in the video game industry. He has contributed stories to…
Deadlock is a new hero shooter developed by Valve, according to leaks
Three heroes lined up in green, red, and blue shades.

Valve might be more known for its Steam Deck handheld and its video game retail platform Steam these days, but according to leaks, the company is working on its next game —  a third-person, hero-based shooter known as Deadlock.

Screenshots of the game and basic details were posted on X (formerly Twitter) by noted Valve game data miner Gabe Follower and on YouTube by Tyler McVicker, who also has a proven track record of leaking Valve info. Both posted about Deadlock first on Thursday, saying it would feature teams of six battling each other on a map with four lanes. It would also feature art that looks inspired by DOTA, the company's multiplayer online battle arena (MOBA) series, with steampunk mixed in for good measure.

Read more
The best games you can beat in a day

Games have steadily become larger and larger as the generations go on. Thanks to the most advanced console and PC technology, developers are able to craft massive worlds and stories that would have been impossible in the past. While many of us enjoy sinking our teeth into a meaty 100-hour-long game from time to time, eventually fatigue will set in. That's where games on the other end of the spectrum come in. These games aren't afraid to tell a tight, compact story, or to explore a single gameplay concept, and then call it a day without stretching things out. They are no less impactful or memorable than their massive counterparts, and may even be superior in some player's eyes. Here are a few of the best games you can beat in a single day to cleanse your palate with some more experimental titles.


Read more
The best video games of 2024 so far
Cait Sith dances in Final Fantasy VII Rebirth.

After a 2023 packed with generation-defining games, it felt like 2024 might be more of a comedown. There weren't a lot of big new releases scheduled to drop outside of a busy first few months, and heavy hitters like Grand Theft Auto 6 aren't arriving until 2025. Traditional wisdom would have you thinking that gamers were in for a very slow year with few highlights.

Now halfway through the year, that couldn't be further from the truth.

Read more