HT TECH wants to start sending you push notifications. Click allow to subscribe

This AI created Pac-Man from scratch just by watching it being played

Nvidia’s AI system recreated the iconic game from ground up, without any coding and without any rendered images

By: HT TECH
Updated on: Aug 20 2022, 20:59 IST
The software did not use any coding or any pre-rendered images. The AI system worked with visual data of the game being played along with the accompanying controller inputs. (Pixabay)

Nvidia is known for its graphics cards but the company also invests a lot into artificial intelligence (AI) and one of their latest projects has been an AI system that recreated the Pac-Man game by just just watching it being played.

The software did not use any coding or any pre-rendered images. The AI system worked with visual data of the game being played along with the accompanying controller inputs. From that it recreated the game frame by frame. The end product is playable and Nvidia plans to release it online in the future.

You may be interested in

Mobiles Tablets Laptops
7% OFF
Apple iPhone 15 Pro Max
  • Black Titanium
  • 8 GB RAM
  • 256 GB Storage
₹148,900₹159,900
Buy now
23% OFF
Samsung Galaxy S23 Ultra 5G
  • Green
  • 12 GB RAM
  • 256 GB Storage
₹115,999₹149,999
Buy now
Google Pixel 8 Pro
  • Obsidian
  • 12 GB RAM
  • 128 GB Storage
₹106,998
Check details
Apple iPhone 15 Plus
  • Black
  • 6 GB RAM
  • 128 GB Storage
₹87,900
Check details
21% OFF
Acer Swift Go SFG14 41 NX KG3SI 002 Laptop
  • Pure Silver
  • 8 GB RAM
  • 512 GB SSD
₹58,990₹74,999
Buy now
39% OFF
Acer Aspire 5 A515 57G Laptop
  • Gray
  • 16 GB RAM
  • 512 GB SSD
₹54,949₹89,999
Buy now
22% OFF
Acer Aspire 3 A315 24 NX KDESI 004 Laptop
  • Silver
  • 8 GB RAM
  • 512 GB SSD
₹33,499₹42,999
Buy now
39% OFF
Asus VivoBook 15 X515JA BQ322WS Laptop
  • Transparent Silver
  • 8 GB RAM
  • 512 GB SSD
₹31,490₹51,990
Buy now
34% OFF
Xiaomi Pad 6
  • Mist Blue
  • 6 GB RAM
  • 128 GB Storage
₹26,299₹39,999
Buy now
55% OFF
Lenovo Tab M10 5G
  • Abyss Blue
  • 6 GB RAM
  • 128 GB Storage
₹20,999₹47,000
Buy now
32% OFF
Realme Pad 2
  • Imagination Grey
  • 6 GB RAM
  • 128 GB Storage
₹19,790₹28,999
Buy now
Honor Pad X9
  • Gray
  • 4 GB RAM
  • 128 GB Storage
₹14,999
Check details

The AI version is not perfect, though. The images are a little blurry and the AI might not have managed to “capture the exact behaviour of the game’s ghosts, each of which is programmed with a specific personality that dictates its movement”. But, the basic dynamics of the game are there - eat the pellets, avoid the ghosts and try not to die.N

The images are blurry but the elements are all there  (Nvidia)
The images are blurry but the elements are all there  (Nvidia)

“It learns all of these things just by watching,” Nvidia’s Rev Lebaredian, vice president of simulation technology, told journalists in a briefing.

“[It’s] similar to how a human programmer can watch many episodes of Pac-Man on YouTube and infer what the rules of the games are and reconstruct them,” Lebaredian added.

Lebaredian said “the work had been done in collaboration with Pac-Man’s creator, Bandai Namco, which celebrated the 40th anniversary of the arcade classic yesterday (May 22)”.

Nvidia believes that work like this shows that artificial intelligence can be used for game design in the future - developers can put their work into the AI and use it to create variations or design new levels.

“You could use this to mash different games together, giving additional power to games developers by [letting them] blend together different games,” ” Sanja Fidler, director of Nvidia’s Toronto research lab, told journalists.

An AI that can learn virtual world rules simply by watching things in action is also a marker for programming robots.

“Eventually we’d like it to learn the rules of the real world,” says Lebaredian. The AI might “watch videos of robotics trolleys navigating a warehouse, for example, and use that information to design navigation software of its own”.

The program that recreated the new Pac-Man is called GameGAN. GAN stands for generative adversarial network and is “a common architecture used in machine learning”. 

The basic principle of a GAN is that it works in two halves - first, “half of the GAN tries to replicate the input data, while the second half compares this to the original source”. Then, if they don’t match, “the generated data is rejected and the generator tweaks its work and resubmits it”.

AI has been used to generate virtual worlds (like in video games) before, but Nvidia’s research “introduced several new aspects, including a ‘memory module’ that allowed the system to store an internal map of the game world”. This allows for greater consistency in the game world, “a key characteristic when recreating the mazes of Pac-Man” and “also allows for the static elements of the game world (like the maze) to be separated from the dynamic ones (like the ghosts), which suits the company’s goal of using AI to generate new levels”.

David Ha, an AI researcher at Google who’s worked on similar tasks, told The Verge that the research was “very interesting”. Ha said that teams have tried to recreate game worlds using GANs, “but from what I know, [this] is the first to demonstrate good results”.

“All in all, a very exciting paper, and I look forward to see more developments using this approach,” said Ha.

Some elements of the process definitely need more work and demonstrate the “particular fragility of artificial intelligence when learning new tasks”. Fidler told journalists that to recreate Pac-Man, GameGAN had to be trained on some 50,000 episodes. Getting that gameplay data from humans wasn’t feasible so the team behind GameGAN used an AI agent to generate the data. Unfortunately, “the AI agent was so good at the game that it hardly ever died”.

“That made it hard for the AI trying to recreate the game to learn the concept of dying,” says Fidler.

Instead, in early versions of the AI-generated Pac-Man, “GameGAN tweaked the game so that ghosts never actually reached the title character but trail directly behind it like baby ducks following a parent”.

“It’s a funny effect of the way we trained it,” says Fidler.

Catch all the Latest Tech News, Mobile News, Laptop News, Gaming news, Wearables News , How To News, also keep up with us on ,Twitter, Facebook, , and Instagram. For our latest videos, subscribe to our YouTube channel.

First Published Date: 23 May, 19:53 IST
Tags:

Sale

Mobiles Tablets Laptops
4% OFF
Samsung Galaxy S24 Ultra
  • Titanium Black
  • 12 GB RAM
  • 256 GB Storage
₹129,999₹134,999
Buy now
7% OFF
Apple iPhone 15 Pro Max
  • Black Titanium
  • 8 GB RAM
  • 256 GB Storage
₹148,900₹159,900
Buy now
13% OFF
Xiaomi 14
  • Matte Black
  • 12 GB RAM
  • 512 GB Storage
₹69,999₹79,999
Buy now
10% OFF
Apple iPhone 15 Plus
  • Black
  • 6 GB RAM
  • 128 GB Storage
₹80,990₹89,900
Buy now
57% OFF
Lenovo Tab M10 5G
  • Abyss Blue
  • 6 GB RAM
  • 128 GB Storage
₹19,999₹47,000
Buy now
38% OFF
Realme Pad 2
  • Imagination Grey
  • 6 GB RAM
  • 128 GB Storage
₹17,999₹28,999
Buy now
13% OFF
Samsung Galaxy Tab S9 5G 256GB
  • Graphite
  • 8 GB RAM
  • 256 GB Storage
₹88,058₹101,398
Buy now
28% OFF
realme Pad 2 WiFi
  • Imagination Grey
  • 6 GB RAM
  • 128 GB Storage
₹17,999₹24,999
Buy now
23% OFF
Infinix INBook X1 Neo XL22 Laptop Intel Celeron Quad Core 8 GB 256 GB SSD Windows 11
  • Blue
  • 4 GB RAM
  • 128 GB SSD
₹22,990₹29,990
Buy now
9% OFF
Asus Vivobook K15 OLED K513EA L512TS Laptop
  • Indie Black
  • 16 GB RAM
  • 512 GB SSD
₹41,999₹45,999
Buy now
22% OFF
Asus ROG Strix G15 G512LI HN059T Laptop
  • Black
  • 8 GB RAM
  • 1 TB SSD
₹70,990₹90,990
Buy now
26% OFF
Asus Zenbook 14 Flip OLED UP3404VA KN542WS Laptop
  • Ponder Blue
  • 16 GB RAM
  • 512 GB SSD
₹99,990₹134,990
Buy now
NEXT ARTICLE BEGINS