A robot taught itself to play chess in just 72 hours

This AI taught itself to play chess in 72 hours

An AI researcher at Imperial College in London has built a deep-learning machine called 'Giraffe' that plays chess like humans do - in an entirely different way to conventional chess engines.

Matthew Lai used a neural network that can be trained using examples. He fed it a huge database of 175 million snapshots from real chess games - and asked the machine to look at the number and type of pieces in play, the locations of the pieces, and the places they could move.

A traditional chess machine would then manually evaluate each position and use that data to calculate the best move. But Lai taught his machine to instead learn to predict what moves were likely to be strong and weak - just like a human player does.

Complicated Positional Concepts

After just 72 hours of the learning process, Giraffe managed to attain the same level of play exhibited by the world's best chess machines - and the human grandmasters that work on them. It can predict the best move 46% of the time, and places the best move in its top three ranking 70% of the time.

"Unlike most chess engines in existence today, Giraffe derives its playing strength not from being able to see very far ahead, but from being able to evaluate tricky positions accurately, and understanding complicated positional concepts that are intuitive to humans, but have been elusive to chess engines for a long time," said Lai in an interview with Technology Review.

"This is especially important in the opening and endgame phases, where it plays exceptionally well."

Lai has published the details of his machine-learning algorithm on the preprint arXiv server.

Image credit: John Morgan // CC BY 2.0

Duncan Geere
Duncan Geere is TechRadar's science writer. Every day he finds the most interesting science news and explains why you should care. You can read more of his stories here, and you can find him on Twitter under the handle @duncangeere.
Latest in Gaming
NYT Connections homescreen on a phone, on a purple background
NYT Connections hints and answers for Sunday, March 23 (game #651)
The player holding a Shard Card in Fragpunk.
Competitive shooter Fragpunk wowed me with its game-changing Shard Cards, but I can't stand the aggressive monetization
A price cut on the Audeze Maxwell gaming headphones.
If you're after an audiophile gaming headset then don't miss out on the chance to snag the Audeze Maxwell for a lowest-ever price at Argos
An image of the Samsung Display concept games console
Forget the Nintendo Switch 2 – I want a foldable games console
Image of Naoe in AC Shadows
Assassin's Creed Shadows is hands-down one of the most beautiful PC ports I've ever seen
Resident Evil 4 Remake Ashley
Forget the Steam Spring Sale that's just ended, these are the six best deals that are still available and I've got in my basket right now
Latest in News
Quordle on a smartphone held in a hand
Quordle hints and answers for Sunday, March 23 (game #1154)
NYT Strands homescreen on a mobile phone screen, on a light blue background
NYT Strands hints and answers for Sunday, March 23 (game #385)
NYT Connections homescreen on a phone, on a purple background
NYT Connections hints and answers for Sunday, March 23 (game #651)
Google Pixel 9 Pro Fold main display opened
Apple is rumored to be prioritizing battery life on the foldable iPhone – which could also feature a liquid metal hinge for added durability
Google Pixel 9
The Google Pixel 10 just showed up in Android code – and may come with a useful speed boost
L-mount alliance
Sirui joins L-Mount Alliance to deliver its superb budget lenses for Leica, DJI, Sigma and Panasonic cameras