Software that devises effective schemes for synthetic chemistry has depended on the input of rules from researchers. A system is now reported in which an artificial-intelligence program learns the rules for itself. Software that devises effective schemes for synthetic chemistry has depended on the input of rules from researchers. A system is now reported in which an artificial-intelligence program learns the rules for itself.