Working out what it would take to program goodness into a robot shows not only how much machinery it takes to be good but how slippery the concept of goodness is to start with.
The fiend with all his comrades Fell then from heaven above, Through as long as three nights and days, The angels form heaven into hell; And them all the Lord transformed to devils, Because they his deed and word Would not revere.