Nvidia teaches AI to create new version of Pac-Man just by watching gameplay

Pacman

Forty years after Pac-Man had his first taste of ghosts, an AI has given the ravenous puck a new maze to chew his way through — without studying the game code.

That means it recreated the game without first being taught the rules. Instead, the AI mimics a computer game engine to create a new version of the arcade classic.

Researchers at GPU giant Nvidia recreated the game by feeding a model they call GameGAN 50,000 PacMan episodes. After digesting the sample, it spat out a fully-functioning new version of the game.

The system uses generative adversarial networks (GANs), which Facebook Chief AI Scientist Yann LeCun called “the most interesting idea in the last 10 years in ML.”

[Read: DeepMind’s new AI can beat humans at 57 Atari games]

GANs create new content — such as photos of faces that don’t exist — by pitting two neural networks against each other: a generator that creates samples and a discriminator that examines the designs to work out whether they’re real. 

GAN inventor Ian Goodfellow, a machine learning director at Apple, compares the process to a competition between counterfeiters and cops.

“Counterfeiters want to make fake money and have it look real, and police want to look at any particular bill and determine if it’s fake, ” he said.

The two networks learn from each other to create new fakes that could pass as the real thing — like a convincing Picasso forgery. Or in this case, the system created a brand new version of a game.

Nvidia says that it’s the first time that GANs have mimicked a computer game engine.

“We wanted to see whether the AI could learn the rules of an environment just by looking at the screenplay of an agent moving through the game,” said Seung-Wook Kim, the lead author on the project. “And it did.”

From Pac-Man to self-driving cars

AI has a long history of playing video games, such as the DeepMind system that mastered StarCraft II. But Nvidia‘s research shows that it can also recreate them.

The company’s system learned to visually imitate Pac-Man by ingesting screenplay and keyboard actions from past gameplay. When the artificial agent presses a key, GameGAN generates new frames of the game environment in real-time until it’s created a new layout.

The model can generate both the static maze shape and the moving elements of Pac-Man and his hated ghosts. It also learns all of the game‘s rules, from sticking within the maze’s walls to avoiding ghosts until he munches a Power Pellet. 

Nvidia says game developers could use the system to automatically generate new levels, characters, and even entirely new games. It can also separate the background from the characters so they can change the settings and the cast. If Pac-Man’s suffering from indigestion, maybe Mario could take this place and chase mushrooms around an outdoor labyrinth.

The system currently is limited to 2D games, but Nvidia plans to make it work on more complex games and simulators.

Ultimately, the company envisions using the system beyond the world of gaming. They expect that it could create simulated environments for developing warehouse robots or autonomous vehicles.

“We could eventually have an AI that can learn to mimic the rules of driving, the laws of physics, just by watching videos and seeing agents take actions in an environment,” said Sanja Fidler, the director of Nvidia‘s Toronto research lab. “GameGAN is the first step toward that.”

Even if that never happens, GameGAN has at least given Pac-Man a memorable gift for his 40th birthday. And Nvidia has invited everyone to his party on a date TBC later this year, when the game will be made available on the company’s AI Playground.

Published May 22, 2020 — 15:46 UTC

About the author

E-Crypto News was developed to assist all cryptocurrency investors in developing profitable cryptocurrency portfolios through the provision of timely and much-needed information. Investments in cryptocurrency require a level of detail, sensitivity, and accuracy that isn’t required in any other market and as such, we’ve developed our databases to help fill in information gaps.

Related Posts

E-Crypto News Executive Interviews



bitcoin
Bitcoin (BTC) $ 61,135.00
ethereum
Ethereum (ETH) $ 4,086.43
binance-coin
Binance Coin (BNB) $ 482.02
tether
Tether (USDT) $ 1.00
cardano
Cardano (ADA) $ 2.15
solana
Solana (SOL) $ 194.75
xrp
XRP (XRP) $ 1.09
polkadot
Polkadot (DOT) $ 43.33
dogecoin
Dogecoin (DOGE) $ 0.248028
usd-coin
USD Coin (USDC) $ 1.00
USD
EUR
GBP
bitcoinBitcoin (BTC)
$ 61,135.00
ethereumEthereum (ETH)
$ 4,086.43
tetherTether (USDT)
$ 1.00
bitcoin-cashBitcoin Cash (BCH)
$ 623.33
litecoinLitecoin (LTC)
$ 195.17
bitcoinBitcoin (BTC)
52.501,21
ethereumEthereum (ETH)
3.509,32
tetherTether (USDT)
0,858775
bitcoin-cashBitcoin Cash (BCH)
535,30
litecoinLitecoin (LTC)
167,61
bitcoinBitcoin (BTC)
44,364.14
ethereumEthereum (ETH)
2,965.42
tetherTether (USDT)
0.725675
bitcoin-cashBitcoin Cash (BCH)
452.33
litecoinLitecoin (LTC)
141.63

Automated trading with HaasBot Crypto Trading Bots

Crypto Scams

Behind The Scenes: How this Crypto Community Responded to + $50m Hack
October 18, 2021
Crypto Scams
Crypto Scams Still Persistent In 2021, SEC Warns About Red Flags To Watch
September 9, 2021
Poly Network
Here’s How Hackers Stole Over $600 million in the Poly Network Attack
August 12, 2021
The World’s Most Infamous Crypto Hacks and Scams
July 31, 2021
Cryptocurrency Exchanges
Cryptocurrency Exchanges and the Plague of Scams and Bans
June 29, 2021

Blockchain/Cryptocurrency Questions and Answers

ICo Presale
The Science Behind ICO Presales…
October 14, 2021
Beginner’s Guide to Investing in Cryptocurrency
August 9, 2021
Short-Sell Cryptocurrency
How to Short-Sell Cryptocurrency: A Brief Overview
July 17, 2021
Klaytn
What Is Klaytn (KLAY) And How Does It Work?
July 16, 2021
Cryptocurrencies
Our Crypto Roundup Interview Asks- Do Cryptocurrencies Have a Future?
July 15, 2021


CryptoCurrencyUSDChange 1hChange 24hChange 7d
Bitcoin61,047 0.08 % 0.18 % 1.23 %
Ethereum4,090.6 0.30 % 2.73 % 5.28 %
Binance Coin481.65 0.14 % 0.24 % 1.17 %
Tether0.9986 0.03 % 0.08 % 0.23 %
Cardano2.150 0.23 % 0.60 % 3.42 %
Solana195.35 0.60 % 0.33 % 19.86 %
XRP1.090 0.19 % 0.52 % 5.13 %
Polkadot30.87 2.19 % 17.29 % 10.73 %
Dogecoin0.2479 0.18 % 0.25 % 5.47 %
USD Coin1.000 0.14 % 0.20 % 0.17 %

bitcoin
Bitcoin (BTC) $ 61,135.00
ethereum
Ethereum (ETH) $ 4,086.43
binance-coin
Binance Coin (BNB) $ 482.02
tether
Tether (USDT) $ 1.00
cardano
Cardano (ADA) $ 2.15
solana
Solana (SOL) $ 194.75
xrp
XRP (XRP) $ 1.09
polkadot
Polkadot (DOT) $ 43.33
dogecoin
Dogecoin (DOGE) $ 0.248028
usd-coin
USD Coin (USDC) $ 1.00