I would assume the computer spends a lot of time analysing timing and ball velocity to make shots on the fly. The rules would be hard programmed into the software so that it knows the values of different things. At that point, the software would use estimated chances of hitting a particular shot, what points and progress it provides, and then makes a decision on what to shoot for. Or it could just continuously combo the center ramp because it's Data East Star Wars and that's good points
I would love to see a modern John Henry competition. This robot vs Keith Elwin. Keith would probably do better because of his ability to nudge the ball. (But the robot might win from attrition by boring Elwin to sleep)