Long before modern computers existed, scientists and philosophers wondered whether machines could imitate human reasoning.