The program is given a set of inputs from a human playing the game, and analyzes the RAM to define success in the game. It then plays the game with no knowledge of the rules, and works incredibly well.