After setting up their lab above a tiny chocolate factory in the San Francisco Mission District, researchers like Zaremba spent weeks walking around this old, rapidly gentrifying Hispanic neighborhood, debating what lofty goal they should chase. They eventually settled on two: a machine that could beat the world’s best players at a three-dimensional video game called Dota, and a five-fingered robotic hand that could solve the Rubik’s Cube.

